[← All disciplines](/work#system-map) 

04 / Backend architecture

# The backend we run and what we’re building

Backend architecture drawings

What we runWhat we’re building

04 / System map

Two sources for the current website

Backend: Two sources for the current website

The 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.

[Open Mobile wrapper drawing](/work/mobile#webview) [Open Scraper drawing](/work/backend#system-A3) [Open Current frontend drawing](/work/frontend#shared-views) [Open CRM drawing](/work/backend#system-A1) [Open Platform API drawing](/work/backend#system-A2) 

━ 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.

The mobile wrapper loads the same frontend as the browser.

The frontend calls the Platform API and also displays imported content.

An account change can trigger a separate CRM sync.

Select a system in the drawing to look inside.

### Live

CRMStaff workspace

CRM / Live

Workspace traffic

CRM: Workspace traffic

Page 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.

[Open Laravel CRM drawing](/work/infra#hosting) [Open MySQL drawing](/work/infra#hosting) 

━ Selected flow ┄ Other connections

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

Laravel reads MySQL and returns Inertia page props to Vue.

For background work, Laravel queues jobs in Redis for Horizon workers.

A task notification can take a separate path back to Vue: the worker broadcasts through Reverb.

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 APICurrent web and WebView app

Platform API / Live

Client traffic

Platform API: Client traffic

Each 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.

[Open Laravel API drawing](/work/infra#hosting) [Open Aurora MySQL drawing](/work/infra#hosting) [Open Amazon SQS drawing](/work/infra#compute) [Open Sync worker drawing](/work/infra#compute) [Open CRM drawing](/work/backend#system-A1) 

━ 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.

Web and mobile send a request. Laravel returns the same JSON contract to both.

Laravel can call upstream, query records in Aurora or get a cached value from Redis.

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

ScraperBackground collection

Scraper / Live

Make imported records searchable

Scraper: Make imported records searchable

Records 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.

━ 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.

The scheduled command fetches source records and queues batches for workers.

Workers save records to MySQL. Media takes its own path to S3.

Laravel Scout indexes saved records in Meilisearch.

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

CorePlatform and staff frontend

Core / In development

From catalogue to staff screen

Core: From catalogue to staff screen

Feed 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.

[Open Scraping Engine drawing](/work/backend#system-B2) [Open New frontend drawing](/work/frontend#replaceable-pages) [Open Native app drawing](/work/mobile#notifications) 

━ Selected flow ┄ Other connections

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

The engine feeds the catalogue, which stores records in PostgreSQL.

Staff use the API to edit records. Reverb delivers changes to the dashboard.

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

Notification journey

- Screen[Native notification feed →](/work/mobile#notifications)
- Verification[Maestro drawer check →](/work/qa#device-checks)
- Design practice[Web and app playgrounds →](/work/design#playgrounds)

Scraping EngineData collection and delivery

Scraping Engine / In development

How Core follows the catalogue

Scraping Engine: How Core follows the catalogue

Core 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.

[Open Core catalogue drawing](/work/backend#system-B1) 

━ Selected flow ┄ Other connections

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

Jobs reconcile source records in PostgreSQL.

Core requests a snapshot. The Read API queries the catalogue and returns its current state.

Jobs publish changes through Reverb to Core’s subscriber.

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 systemAI-native support inbox

Support system / In development

Draft a reply with the copilot

Support system: Draft a reply with the copilot

The 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.

[Open CRM drawing](/work/backend#system-A1) 

━ 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 inbox stores the customer’s message in the conversation history.

The teammate asks the copilot for a draft. It uses the brand’s knowledge base and returns a suggestion to the workspace.

The teammate can edit the draft or write their own reply, then send it from the inbox.

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 →](/work/infra#hosting) 

## Open roles

Kathmandu, Nepal · Full-time

[Backend Engineer →](/join/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 →](/join)

[Interactive page](/work/backend)
