PCDS Technology Deep Dive: The Firebase NoSQL System
The Private Compact Data Space (PCDS) utilizes Google Firebase Firestore, a highly scalable, serverless NoSQL database, as the central nervous system for all Ecoladang sensor data and management settings. This system is crucial for achieving our core operational goals: real-time decision-making, minimal maintenance, and low infrastructure cost.

Why Firebase NoSQL?
Unlike traditional relational (SQL) databases designed for complex joins and fixed schemas, Firestore uses a document-driven NoSQL model. This architecture provides three critical advantages for our system:
Flexibility:Sensor data is inherently variable. NoSQL easily accommodates new sensor types, new data formats, and evolving PCDS units without requiring disruptive database migrations.
Scalability:Firestore is built to handle millions of simultaneous connections and writes, making it ideal for the high-volume data ingestion required from 50+ geographically dispersed farm sites.
Speed:By leveraging specialized indexing and proximity to Google Cloud infrastructure, Firestore delivers sub-second data retrieval, ensuring our monitoring dashboards are always real-time.

Real-Time Monitoring and Alerting
Clean Syngas for electricity generation.
The most powerful feature leveraged by the PCDS is Firestore’s Real-Time Listener capability
Instant Visibility: Instead of the central PMO server having to constantly ask the database for updates (polling), Firestore instantly pushes new data to any connected application (like our Grafana dashboards) the moment a new sensor reading is saved.
Predictive AI: This real-time stream is essential for our AI models. When the PCDS detects an anomaly, the alert is written to a dedicated Firestore collection and instantly reflected in the PMO system, allowing intervention within seconds, not minutes.
In essence, any connected user or system sees new data the instant the sensor sends it.

Centralized Site Configuration Management
The PCDS is designed to operate with minimal human intervention, and much of that automation relies on central, per-site configuration settings stored in Firestore.
- Individual Site Settings: For every PCDS unit (e.g., MDS-KL-001), there is a dedicated document storing all configurable parameters, such as:
- Target Temperature Ranges
- Mycelium Growth Cycle Timers
- Water Flow Thresholds
- Remote Updates:When a farm manager or the PMO needs to adjust a parameter (e.g., lower the target temperature threshold), they update this single configuration document. The PCDS unit's local application is constantly listening to this document, and the change is downloaded and applied almost instantly. This provides a robust, standardized mechanism for setting and monitoring all systems remotely.

Data Sovereignty and Security
Security is paramount. The PCDS architecture ensures that all operational and sensor data is segregated and protected:
Secure Paths: All data is stored in unique, user-specific paths (/artifacts/{appId}/users/{userId}/...). This ensures that only authorized, authenticated users associated with that PCDS unit or the central PMO can access or modify the data.
Encrypted Transport:All communication between the PCDS unit, the user dashboard, and the database is secured using SSL/TLS encryption, meeting industry standards for data integrity.
By leveraging Firebase, the Ecoladang PCDS achieves high-volume, low-latency, and low-cost data infrastructure, enabling the AI-driven farm management that defines our operational efficiency.

Our Pledge: Guiding Principles for Sustainable Growth
Ecoladang is more than a franchise; it is a pledge to build a greener, more prosperous future from the ground up. We are dedicated to proving that economic success can and must be achieved through environmental responsibility and community empowerment.