Qravix

The offline gateway

A small program at the venue keeps the doors working when the internet does not. It decides with the same rules as the cloud, and tells the cloud everything it decided once the connection is back.

How you set it up

  1. Create a key for the gateway A service key that holds only the gateway permission. It never leaves the venue.
  2. Run the gateway at the venue Tell it the cloud address, the key, your project, and which local reader belongs to which area. It is one program with no database.
  3. It keeps a signed bundle Every minute it fetches everyone who could pass, with their public keys and rules, signed by your project and good for 14 days by default. It saves it to disk and checks the signature again on every start.
  4. Readers ask the gateway The request and the answer are the same as the cloud’s, so a reader only needs another address. Online or offline, the gateway answers; offline it decides alone and reports every decision when the connection returns.

What you can change

Good to know

Know the trade-off: someone you remove keeps passing at an offline gateway until its next sync. Keep the sync short and the bundle’s life as short as an outage allows.