Skip to main content
← All disciplines

04 / Backend architecture

The backend we run and what we’re building

Backend architecture drawings

04 / System map

Two sources for the current website

Backend: Two sources for the current websiteThe website gets imported content and API responses. Reading a page does not require a CRM sync.. Mobile wrapper → Current frontend: loads site. Scraper → Current frontend: imported content. Current frontend → Platform API: request. Returns JSON. Platform API → CRM: syncs accounts.loads siteimported contentrequest / JSONsyncs accountsMobile wrapperWEBVIEWScraperBACKGROUND IMPORTSCurrent frontendCUSTOMER WEBSITECRMSTAFF WORKSPACEPlatform APILIVE

━ Selected flow ┄ Other connections

The current website uses the Platform API, whether it runs in a browser or inside the mobile wrapper. The scraper supplies imported content.

Select a system in the drawing to look inside.

Live

CRM / Live

Workspace traffic

CRM: Workspace trafficPage reads use MySQL. Jobs run through Redis and Horizon; notifications reach Vue over Reverb.. Vue 3 screen → Laravel CRM: request. Returns page props. Laravel CRM → MySQL: query. Returns rows. Laravel CRM → Redis: queues job. Redis → Horizon workers: delivers job. Horizon workers → Reverb: broadcasts. Reverb → Vue 3 screen: pushes update.request / page propsquery / rowsqueues jobdelivers jobbroadcastspushes updateVue 3 screenSTAFF BROWSERReverbPUSH SERVICELaravel CRMAPPLICATIONHorizon workersPROCESSINGMySQLDATABASERedisJOB QUEUE

━ Selected flow ┄ Other connections

Staff read reports in Vue while queued work runs outside the page request.

Staff filter a report in Vue; Laravel queries MySQL and returns Inertia.js page props. Larger exports run on Redis queues managed by Horizon. Reverb pushes notifications to the browser; Nightwatch and Sentry help the team investigate slow or failed work.Route 53 DNS · Forge-managed application server and separate MySQL server · Horizon and Reverb daemons

Platform API / Live

Client traffic

Platform API: Client trafficEach packet is a separate exchange, not a sequence of calls that every request makes.. Current frontend → Laravel API: request. Returns JSON. Laravel API → Upstream API: call. Returns reply. Laravel API → Aurora MySQL: query. Returns rows. Laravel API → Redis: lookup. Returns value. Laravel API → Amazon SQS: queues sync. Amazon SQS → Sync worker: delivers job. Sync worker → CRM: if configured.request / JSONcall / replyquery / rowslookup / valuequeues syncdelivers jobif configuredCurrent frontendBROWSER + WEBVIEWUpstream APIEXTERNAL SERVICELaravel APIAWS LAMBDAAurora MySQLDATABASEAmazon SQSJOB QUEUERedisELASTICACHESync workerQUEUE CONSUMERCRMOPTIONAL · EXTERNAL

━ Selected flow ┄ Other connections

The current frontend calls the Platform API in both the browser and the WebView wrapper. The new frontend and native app use Core API instead.

Clients depend on Laravel’s API contract, not the upstream response format or the storage layout. The external CRM is a separate integration; ordinary reads don’t wait for a sync worker.Cloudflare DNS · Laravel Vapor deploys to AWS Lambda · Amazon RDS (Aurora MySQL) · ElastiCache Redis · SQS

Scraper / Live

Make imported records searchable

Scraper: Make imported records searchableRecords become searchable through MySQL and Scout. Media files go to S3 instead of the index.. Import command → Source APIs: fetches records. Import command → Horizon workers: queues batches. Horizon workers → MySQL: saves records. Horizon workers → Amazon S3: uploads media. MySQL → Meilisearch: Scout indexes.fetches recordsqueues batchessaves recordsuploads mediaScout indexesImport commandSCHEDULED TASKSource APIsEXTERNAL DATAHorizon workersREDIS QUEUESAmazon S3MEDIA STOREMySQLDATABASEMeilisearchSEARCH INDEX

━ Selected flow ┄ Other connections

A source record isn’t much use until someone can find it. Scheduled imports keep the search index up to date.

Scheduled imports fetch source records and dispatch batches of Laravel jobs. The workers save records in MySQL; Laravel Scout keeps them searchable in Meilisearch. Media files take a separate path to S3. The repository documents these processes, but does not establish the compute host.Laravel scheduler · Redis and Horizon workers · Meilisearch · Amazon S3

In development

Core / In development

From catalogue to staff screen

Core: From catalogue to staff screenFeed ingestion, staff edits and screen updates share a catalogue, not a single request.. React dashboard → Core API: reads / edits. Reverb → React dashboard: pushes changes. Core API → PostgreSQL: commits records. Scraping Engine → Catalogue: supplies feed. Catalogue → PostgreSQL: stores catalogue. New frontend → Core API: request. Returns HTML. Native app → Core API: request. Returns data.reads / editspushes changescommits recordssupplies feedstores cataloguerequest / HTMLrequest / dataScraping EngineUPSTREAM SERVICEReverbWEBSOCKETSCatalogueCORE MODULEReact dashboardSTAFF BROWSERPostgreSQLDATABASECore APILARAVEL MODULESNew frontendV2 WEBSITENative appV2 MOBILE

━ Selected flow ┄ Other connections

Core keeps a local catalogue. Staff work against Core, not the external feed.

Core keeps account, catalogue and permission modules in one Laravel application. The staff dashboard reads its initial view over HTTP and receives changes over WebSockets. The V2 clients call Core directly: for a content page, the new frontend can use HTML and the native app can request a structured node tree. Neither calls the scraping engine.Laravel Cloud · PostgreSQL · Horizon + Redis · React, Vite and TanStack Query

Scraping Engine / In development

How Core follows the catalogue

Scraping Engine: How Core follows the catalogueCore pulls snapshots from the Read API. Reverb pushes live changes to Core.. Source feeds → Ingestion jobs: supply records. Ingestion jobs → PostgreSQL: reconciles. Read API → PostgreSQL: queries state. Ingestion jobs → Reverb stream: emits changes. Reverb stream → Core catalogue: live updates. Core catalogue → Read API: request. Returns snapshot.supply recordsreconcilesqueries stateemits changeslive updatesrequest / snapshotSource feedsEXTERNAL DATAIngestion jobsHORIZON WORKERSPostgreSQLDATABASEReverb streamWEBSOCKETCore catalogueAPI CLIENT + SUBSCRIBERRead APIHTTP / REST

━ Selected flow ┄ Other connections

Core reads the catalogue over HTTP and subscribes to changes over a WebSocket.

Core’s catalogue consumes both interfaces. If it misses live updates, it can request replay over HTTP to catch up. The customer web frontend and mobile app talk to Core, not to the engine.Laravel Forge Quick Deploy · Octane · Redis / Horizon · PostgreSQL · Reverb

Support system / In development

Draft a reply with the copilot

Support system: Draft a reply with the copilotThe staff copilot drafts; the teammate decides what to send. Neither step requires a CRM lookup.. Email + chat → Team inbox: message. Staff workspace → Team inbox: reply. Team inbox → PostgreSQL: stores threads. Staff workspace → CRM connector: lookup. CRM connector → CRM: reads profile. Staff workspace → Staff copilot: ask. Returns draft. Staff copilot → Help articles: read. Returns articles.messagereplystores threadslookupreads profileask / draftread / articlesHelp articlesBRAND KNOWLEDGEStaff copilotAI DRAFTINGEmail + chatCUSTOMER CHANNELSStaff workspaceREACT / INERTIATeam inboxLARAVEL MODULECRM connectorOPTIONAL / READ ONLYPostgreSQLCONVERSATIONSCRMACCOUNT CONTEXT

━ Selected flow ┄ Other connections

A customer writes in. A teammate opens the ticket and asks for a draft grounded in that brand’s help articles.

The staff copilot rejects drafts that name another brand in the workspace. A separate, optional chat assistant can answer visitors from that brand’s help articles or hand them to a teammate. It has no CRM access.Target: isolated installations · Forge · PostgreSQL · Redis / Horizon · Reverb
Where the frontend, API and CRM run →

Open roles

Kathmandu, Nepal · Full-time

Backend Engineer →

Look after the APIs and queues that our web and mobile apps depend on. Decide what should happen when a request fails or arrives twice.

See all open roles →