InfraSonar is a great example of ThingsDB's versatility. As a multi-tenant monitoring platform, InfraSonar processes large volumes of infrastructure telemetry while maintaining high availability through seamless redundancy. To achieve this at scale, InfraSonar pairs specialized data stores, such as SiriDB for time-series metrics, Google Cloud Datastore (or MongoDB for on-premises deployments) for alert archives, and hubs holding current metric values, with ThingsDB at the center as the platform's stateful orchestrator and logic engine.
A microservices architecture, while offering numerous benefits, presented a unique set of challenges for InfraSonar's deployment. Microservices, by design, are usually stateless entities, devoid of persistent storage. This characteristic, while simplifying their management, posed a significant obstacle in orchestrating, configuring, and coordinating these independent units. To address this challenge, we turned to ThingsDB.
The Single Source of Truth and Event Engine
ThingsDB holds the core operational state and business logic that ties the entire platform together—storing everything from assets, containers, labels, and users to conditions, rules, webhooks, collectors, types, and metric metadata. This centralized approach provides a single source of truth for configuration information, ensuring that all microservices—and user interfaces—operate with the latest settings.
Beyond storage, InfraSonar relies heavily on ThingsDB's real-time eventing capabilities. By emitting events directly from ThingsDB, updates are pushed immediately to both backend microservices and front-end clients (the web and mobile apps). Backend services are invoked dynamically in response to changing infrastructure conditions, while connected web and mobile apps reflect state changes the moment they happen, whether that is an incoming alert or a simple UI update like changing a label color. This event-driven approach keeps every layer of InfraSonar continuously in sync, delivering real-time insights into system health and performance.
Watch how ThingsCode enables real-world, event-driven development using ThingsDB and InfraSonar—including live UI updates like changing a label color.
Built-in Scheduling and Extensible Nodes
To further enhance the scalability and capabilities of our microservices architecture, we also leverage single-instance ThingsDB nodes alongside built-in platform features:
- Native task scheduling: InfraSonar uses ThingsDB's built-in tasks to handle time-based state transitions automatically—for example, scheduling a task to return an asset to its normal monitoring state after a temporary maintenance window expires.
- Custom node modules: Using ThingsDB modules and the ThingsDB language, dedicated nodes act as lightweight task handlers for external integrations, including SMTP email delivery, Twilio (for SMS and voice alerts), and push notifications.
Continuous Evolution Without Downtime
In summary, InfraSonar's deployment demonstrates how ThingsDB excels as the real-time backbone of a modern distributed system. By combining centralized state and logic management, event-driven microservice orchestration, and built-in task scheduling, ThingsDB coordinates every moving part of the monitoring platform.
Just as importantly, ThingsDB enables the InfraSonar development team to roll out schema and logic updates without any downtime—ensuring continuous availability even while rapidly evolving the platform.
We are confident that ThingsDB plays a critical role in the future of InfraSonar, supporting its continued success in the ever-evolving world of IT infrastructure management.
