VolverBack

01 — CASO_DE_ESTUDIO_CASE_STUDY_

¿Por qué habilitar una infraestructura first-offline en el área de la construcción?How I enabled first-offline infrastructure in the construction area

2025 — 2026ArquitecturaArchitectureCOUCHBASEOFFLINESYNC
012025 — 2026

◧◨

Today, offline support is indispensable to keep applications operational according to each project’s needs. In construction, continuity of operational processes is fundamental; in Mexico, however, especially during the building or maintenance of highways, internet outages often stall the workflow. In those scenarios, timely follow-through on information becomes critical. Traditional sync methods demand considerable effort, which varies with business logic and use case, but I believe modern tools can optimize and fully simplify this process in full-stack products.

At VISE I took on deploying and maintaining Couchbase together with Sync Gateway, a solution that fit our use case perfectly. This document-oriented non-relational database stands out for its flexibility, with integrations across languages, frameworks and technologies — including message brokers.

The main goal was to cover mobile apps by integrating Couchbase Lite and Sync Gateway. Sync Gateway handles delta sync and document conflict resolution, and also lets you configure custom rules by user, channel, or document state and attributes.

The key benefit of this architecture is offline support for mobile apps, while web platforms can connect to the Couchbase server to view and interact in real time with documents created by mobile users — and vice versa.

What if you need to integrate that information with other kinds of databases? To work with relational databases I brought in a message broker, integrating Kafka, Kafka Connect and ksqlDB. What impressed me most about the Couchbase SDKs was their connectivity: they ship connectors ready to build data pipelines, transform data and send it to any database. That infrastructure step was what kept every essential document flowing through operational processes.

These implementations and deployments sped up development and shipped more than five mobile apps — steel control, inventories and preventive maintenance programs for heavy machinery — with a smooth integration into the web modules already in place.

Los datos se capturan en obra sin señal, se guardan en una cola local de Couchbase Lite y, al volver la red, se sincronizan por Sync Gateway hacia Couchbase Server, Kafka y el ERP.Data is captured on site with no signal, stored in a local Couchbase Lite queue, then synced through Sync Gateway into Couchbase Server, Kafka and the ERP when the network returns.

Las escrituras se acumulan en el dispositivo. Cuando vuelve la conectividad, la cola envía los datos por Sync Gateway hacia el servidor.Writes pile up on the device. When the connectivity comes back, the queue sends the data through Sync Gateway to the server.

VolverBack