The consumer and technician apps I built at SupTech shared one central object: the service order. Each client showed a different perspective, but both depended on the same sequence being correct. A customer could create a request, communicate with a technician, and pay. A technician could discover work, accept it, report progress, and complete the service.
The integration challenge was keeping those perspectives consistent when updates crossed several systems. Following one order through both clients gives me a clear way to reason about the architecture and identify where reliability needs attention.
Start with states and responsibilities
Before treating orders, chat, and payment as separate modules, I want to understand the legal transitions between states. Who may accept an order? Can a customer cancel after service begins? Does “complete” mean the service ended, payment settled, or technician earnings became eligible for transfer?
Those concepts should stay distinct. A single status field that mixes service progress and financial state quickly becomes difficult to reason about.
An order can reference a payment and conversation while keeping their lifecycles separate. The server should validate transitions and record the actor and time. Clients can request actions and display the resulting state.
Let each client express its user’s job
The consumer app focused on requesting service, supplying details and photos, selecting a location, paying, and following progress. The technician app focused on eligible opportunities, acceptance, service actions, and earnings information.
Shared infrastructure was useful for authentication, localization, API access, and design consistency. Role-specific screens still needed different priorities. A technician’s “Begin service” action has no equivalent in the consumer interface, even though both reference the same order.
Hiding an action in the wrong client is a UI decision. Preventing an unauthorized action is a backend decision. Both are needed.
Treat nearby orders as a view of eligibility
Location updates and matching logic supported the technician’s nearby-order feed. The map presented the feed, while the backend determined assignment.
A displayed order can become unavailable between refresh and acceptance. The backend must recheck its state and decide ownership atomically. The UI then needs to explain that the order is no longer available and refresh the feed.
Coordinates also need context. A stale location should not be treated as equally reliable as a recent one. Distance filtering helps narrow choices, but it does not by itself estimate driving time.
Keep chat durable and notifications lightweight
Order-scoped conversations gave customers and technicians a way to share information. Text and media belonged in a persistent message system, with participant checks tied to the relevant order.
Push notifications supported awareness when the app was not open. They should carry enough information to identify the conversation, then let the app load current data. Firebase documents that accepting a message does not prove delivery; a pending notification can also expire. The message store and its participant checks must remain authoritative.
System events deserve separate treatment too. “The technician is on the way” should originate from a verified order transition, not an arbitrary client-authored message posing as the system.
Keep the financial timeline explicit
Stripe supported customer payment and connected accounts for technicians. A transfer moves money to a connected Stripe balance; a payout moves available funds to an external account. These operations should be represented accurately in the product and support tools. Stripe’s documentation explains the distinction.
A successful-looking client interaction should be followed by authoritative server reconciliation. Stripe recommends server-side webhook handling for fulfillment, so that closing the app does not lose the payment result. Delayed transfers, refunds, and failed payouts each create additional states the app may need to explain.
Use AI as assistance with an exit
The consumer workflow also included an AI repair assistant. Its useful role was helping organize a description and explore appropriate basic troubleshooting before requesting service.
I would keep a clear route to a technician and set limits on unsafe advice. A diagnosis needs evidence beyond a conversational response. Relevant context should support the service request and make the handoff easier.
Follow the lifecycle when testing
The backend work involved Node.js/Firebase and Java/MySQL integration. Across those choices, the key requirement stayed the same: two clients must agree about one order.
I would validate the complete sequence, then interrupt it at its boundaries: lose connectivity after acceptance, retry a request, open an old notification, or receive a payment update after the screen closes. The useful result is concrete: both users can still see who owns the order, which actions remain available, and what happened to the payment.