Project Objective
To build a highly scalable, fault-tolerant Messaging Middleware platform fully integrated with Odoo, delivering seamless communication through:
SMS (multi-provider),WhatsApp,Telegram,Viber,RocketChat,Email
with intelligent load balancing, automated provider failure handling, real-time dashboards, and deep Odoo integration.
Business Challenges
- Fragmented messaging across SMS, IM, and email channels.
- Manual fallback process when providers failed — causing delays in critical communications.
- No real-time visibility into message delivery performance.
- No centralized, Odoo-based messaging interface for users.
- Required seamless scalability to handle varying volumes of messaging traffic.

Solution Overview
A custom-built Messaging Middleware Platform was architected and implemented with the following key components:


Messaging Microservices Layer:
- FastAPI-based microservices for asynchronous, multi-threaded message processing.
- Load balancing across multiple SMS providers: Dhiraagu, Ooredoo, Azure SMS, Dinstar.
- Dynamic provider suspension & reactivation based on real-time delivery performance (SDSR).
- Automatic fallback to IM channels (WhatsApp, Telegram, Viber) in case of SMS channel failures.
- Multi-channel retry mechanism — messages retried across alternate providers/platforms.
- Full delivery tracking using webhooks from SMS providers.
Odoo 18 User Integration
Unified Messaging UI inside Odoo — accessible to Sales, Marketing, Operations users.
Ability to send messages to:
- Internal users
- Customers
- Vendors
- SMS Blast via Excel — mass messaging with dynamic personalization fields (e.g. $$FirstName$$).
- AD group-based messaging and permission controls.
- Real-time live status dashboard in Odoo:
- Per-channel and per-provider delivery performance
- Historical analytics (daily, monthly)
- CSV export for reporting.




Monitoring & Administration
- Dynamic load balancing configuration — managed via Odoo and mirrored in Redis for fast updates.
- Automated alerts via email for:
- Provider suspension due to poor delivery rate.
- Service downtime (e.g. no SMS sent in 15 mins).
- Admin control to enable/disable providers or IM channels in real time.
- Full audit trails and logs for all message activity.
Architecture & Scalability
- ThreadPoolExecutor enables highly parallelized message sending:
- SMS batch size: 200 (production), 10 (testing).
- Parallel workers: configurable (default 5).
- Dynamic config reloaded live from database and Redis — no service restarts required.
- Dockerized microservices stack for scalable deployment.
Key Technologies
- FastAPI for REST APIs & messaging orchestration.
- PostgreSQL for Odoo and configuration management.
- MSSQL for SMS queue and delivery tracking.
- Redis for real-time provider state & config cache
- Python 3.8+, Dockerized deployment.
- Odoo 17 for front-end messaging UI & reporting.

Outcomes & Business Impact
- >99% delivery success rate across SMS and IM channels.
- Automated fallback mechanism eliminated manual intervention for message failures.
- Real-time monitoring & control gave business users confidence in messaging reliability.
- 70% faster delivery of mass communications via optimized microservice architecture.
- Seamless user experience — Odoo became the single interface for multi-channel messaging.
- Platform designed for future extensibility — additional IM channels or new providers can be added easily.

Read more about KTree
KTree, a Global IT Company
What and how the processes are structured in KTree?
KTree's processes follow CMMi to ensure consistent, high-quality outcomes. With a focus on quality coding , code reviewing, and performance and load testing in our QA processes, we deliver reliable, scalable, and high-performing applications to meet our clients' needs.
Where is KTree's Web and Mobile application Development done?
KTree's web and mobile application development primarily takes place at our Hyderabad development center. Hyderabad is not only abundant in IT talent but is also known for its rich heritage and exotic food.
How KTree makes outsourcing project a positive experience?
KTree delivers high-quality applications that meet our clients' needs, by prioritizing collaboration, communication, visibility, traceability, and requirements engineering. While we charge a little premium for our services, we believe that it is important to provide the necessary resources and expertise to ensure project success.
What is Success mantra of KTree, as one of the respected web development company?
The success mantra of KTree as a respected web development company is combining Agile methodology with strong documentation, powerful web and mobile frameworks, and a solid KTree team to deliver great web and mobile applications within a specified timeframe.
Any other Differentiation which KTree has, which it can offer?
KTree's tremendous knowledge and expertise, gained from working on hundreds of web and mobile application projects, gives us a significant advantage that allows us to provide a head-start on projects, saving our clients many man-months.
What Development methodology KTree follows and why?
KTree's development team follows the Scrum framework of the Agile methodology, which improves Agility through its simplicity and flexibility. This allows us to adapt to changing project requirements and deliver high-quality products within the specified timeframe.
Leverage the expertise of a Top Application development company for your enterprise web and mobile application needs.
Contact our solid KTree team to get started.
