Tech stack & architecture advice for building a Porter/Uber-like intra-city logistics app? #214396
Unanswered
Sahaab-Ji
asked this question in
Other Feature Feedback, Questions, & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Code Search and Navigation
Body
Hey devs,
I'm building an on-demand intra-city delivery/logistics platform (customer app, driver partner app, and admin dispatch panel) and wanted to get a sanity check on the architecture before locking it in.
Here is what I'm currently thinking:
Frontend/Mobile: React Native or Flutter for cross-platform apps, React for the admin dashboard.
Backend: Node.js (Express/NestJS) with WebSockets (Socket.io) for real-time driver location updates and order state changes.
Database: PostgreSQL + PostGIS (or Redis geospatial indexes) for matching nearby drivers within a radius.
A few specific questions for folks who have built real-time location/dispatch systems:
Location Tracking: What's the sweet spot for GPS ping intervals (e.g., every 3–5 seconds) to balance live tracking smoothness against server load and driver battery drain?
Maps & Routing: To avoid getting crushed by Google Maps API billing early on, has anyone successfully used MapmyIndia (Mappls) or self-hosted OSRM for Indian addresses and accurate ETAs?
Order Matching: How do you handle race conditions when broadcasting an order request to the 5 nearest drivers simultaneously so two drivers don't accept the same trip?
All reactions