Business systems · Operations overview

Business

This page presents a home-based business with two areas: crafting, which includes manufacturing, inventory management, and selling handmade products; and computers, which includes selling computer products and providing computer-related services. Its business systems support inventory, online marketplace synchronization, data storage, backups, and monitoring.

Business status: The home business is active, and its systems are running. The Inventory system currently runs on AWS and is being migrated to 6703OS staging.

We are using 6703OS-staging-1.1 to test it as a server for the home business.

Business workflow

The inventory service stores products and scheduled snapshots. A nightly job calls the sync service, which reads marketplace data, compares it with inventory, and applies updates. The application services and PostgreSQL run on a private backend network; marketplace APIs remain external.

flowchart LR
    subgraph backend["Docker backend network"]
        Inventory["Inventory service
.NET · Clean Architecture
Hangfire · Serilog"] Database[("PostgreSQL
Products · Snapshots")] Sync["Sync service
Python · FastAPI
Logging"] Inventory -->|"EF Core"| Database Inventory -->|"21:55 snapshot · 22:00 scheduled POST /sync"| Sync Sync -->|"compare and update"| Database end Sync -->|"HTTPS · read and sync product data"| Marketplaces["Shopee API
TikTok API"]
Inventory synchronization flow. Schedule and service behavior are taken from the project notes.

Deployment and traffic flow

The deployment uses Hostinger to host the server and a Cloudflare Tunnel to connect public traffic to services running on the 6703OS host. Cloudflared receives tunnel traffic and passes requests to NGINX, which routes them to the backend. Responses return through the same components in reverse order.

flowchart LR
    Client["Client"]
    Edge["Cloudflare Edge"]
    Tunnel["Cloudflare Tunnel"]
    Cloudflared["cloudflared service
on 6703OS host"] NGINX["NGINX"] Backend["Server backend"] Hostinger["Hostinger
hosting provider"] Client -->|"Inbound request"| Edge Edge --> Tunnel Tunnel --> Cloudflared Cloudflared --> NGINX NGINX --> Backend Backend -->|"Outbound response"| NGINX NGINX --> Cloudflared Cloudflared --> Tunnel Tunnel --> Edge Edge --> Client Hostinger -. "hosts 6703OS" .-> Cloudflared Edge -. "tunnel configured in Cloudflare" .-> Tunnel
Hostinger deployment with Cloudflare Tunnel, cloudflared, NGINX, and the backend.

Backups and recovery

The notes describe three protection layers: the live database volume, daily local database dumps, and encrypted off-site copies. Local backups are retained for seven days; off-site copies are retained for 30 days. A periodic restore test is part of the operations process.

flowchart LR
    Database[("PostgreSQL data
Live Docker volume")] Dump["Daily 02:00
pg_dump · gzip"] Local[("Local backup volume
7-day retention")] Offsite["Encrypted off-site copy
S3 · MinIO · NAS · VPS
30-day retention"] Restore["Monthly restore test"] Database --> Dump --> Local --> Offsite Local -. "verify recovery" .-> Restore Offsite -. "verify recovery" .-> Restore Dump -->|"success timestamp / failure counter"| Metrics["Backup metrics"] Metrics --> Alerts["Alert on failure"]
Backup flow and retention periods for the business systems.

Monitoring and operations