Skip to main content

How We Store Information: Your Digital Records

Keeping your data safe and organized is our top priority. We use two different "filing cabinets" to make sure your information is always available when you need it and protected forever.

1. The Quick-Access Desk (Redis)​

This is for information we need right now. It's extremely fast but temporary.

  • Is the light on? We store the current state of your home here so your app updates instantly.
  • Security Tokens: We store the "use once" tokens for security checks here to prevent anyone from repeating an old command.
  • Waiting Room: If two devices try to talk at once, this is where they "queue up" for a split second.

2. The Secure Vault (Firestore)​

This is for your permanent records. It's built for absolute reliability.

  • Your Home Layout: The names of your rooms and which devices are in them.
  • Security History: A permanent log of every command ever sent, so you can see exactly what happened in your home.
  • Device Secrets: We store the unique digital keys for each of your devices here, locked away behind another layer of encryption.

3. Keeping Things Consistent​

We have strict rules for how data travels between these two systems:

  • Write-Through: When a command is sent, we update the Vault (permanent) and the Desk (quick) at the same time. This ensures that even if our "quick memory" restarts, your settings are never lost.
  • Monotonicity: We use a special counting system for your devices. This ensures that if a device sends an "old" message, our databases will recognize it as out-of-date and ignore it.

4. Privacy & Isolation​

Our system is Multi-Tenant.

  • Imagine a massive hotel where every guest has their own private, soundproof room.
  • Even though everyone is in the same building (the cloud), your information is physically and logically walled off from every other user.
  • No one else—not even our own staff—can see inside your "room" without your explicit permission.

5. Summary​

By combining lightning-fast memory with rock-solid permanent storage, we ensure that your smart world is always responsive and your data is always safe.