Back to projects
E-commerce solution architecture

ACP Vendas

ACP Vendas’ e-commerce operation: its own Go store on Google Cloud, ERP, payments, and data governance, connected to TikTok Shop, Shopee, and Mercado Livre.

GoCloud RunFirebase HostingFirebase AuthenticationFirestoreCloud TasksCloud SchedulerCloud ArmorCloud BuildCloud StorageArtifact RegistryTerraformMercado Pago SDKPagar.meBlingReactTypeScriptPythonSQLiteCloud Logging

An ongoing project for ACP Vendas, a Brazilian company building its online sales operation. TikTok Shop is the priority channel, with Shopee and Mercado Livre in the same scope, plus its own store and an institutional landing page. I work as the solutions architect: I translate business needs into technical decisions, set priorities with the client, and follow each workstream through delivery. Implementation is supported by AI agents working under the rules, tests, and acceptance criteria I define.

Before selling, the client needs to know what is left in each channel. One of the first deliverables was a margin calculator that compares the marketplaces’ public fees and finds the lowest price that meets the target. The same care guides the rest of the project: inventory, orders, and payments must reconcile across the store, the ERP, and the sales channels.

The store has a modular Go backend, with monetary values in cents and prices always calculated on the server. The API runs on Cloud Run with Firebase Authentication and Firestore, and a private worker triggered by Cloud Tasks and Cloud Scheduler processes orders idempotently, without relying on a single instance’s memory. Pix and card payments are validated with the official Mercado Pago SDK against a dedicated emulator, and Bling was chosen as the commercial ERP for integration with the store and the marketplaces.

Infrastructure is declared in Terraform, with remote state in Cloud Storage and separate identities per service. CI/CD uses Cloud Build and versioned images in Artifact Registry to deploy to Cloud Run, with Cloud Armor protecting the API entry point and Cloud Logging and Monitoring following the operation. The test environment is paused outside working hours to control costs. In parallel, an administrative base in Python and SQLite records registrations, decisions, and evidence with an audit trail, and organizes the migration of accounts to company ownership.

The project is in validation: the store is already tested end to end in a controlled environment, and channel onboarding is underway. Next steps are the live integrations with the payment gateways, Mercado Pago and Pagar.me, and with Bling, followed by the start of sales.

Architecture

Solution overview