▲ 2 r/reactnative
Any suggested approach to handle order queue in App?
I'm building a React Native (Expo) POS app for a busy food stall. Currently the app sends orders to my backend (Express → Firebase). I want an offline-first architecture where tapping "Place Order" instantly saves the request locally, then automatically syncs it to the backend when internet is available. Should I queue raw API requests (endpoint + payload) or store domain objects (orders) in SQLite? How would you design this for reliability, retries, and preventing duplicate orders if the network drops after the backend processes the request but before the client receives the response? Looking for production-grade architecture recommendations.
u/Ok_Anxiety8252 — 3 days ago