Build a payments ledger whose retried requests charge once, whose concurrent payments never overdraw a wallet, and whose events are never lost: idempotency keys, row locks, a transactional outbox, idempotent consumers and signed webhooks, all running locally.
Backend Engineer. Advanced.
For backend developers who read Python, write SQL and use HTTP APIs, and want to build payment services that stay correct under retries, concurrency and partial failure.
This lesson lists the knowledge the project assumes, the tools you need and how to check each one. If a check fails, fix it before starting the guide: every later step depends on these.
Marlowe's ledger has to stay correct while three unreliable things happen all the time: clients retry requests whose answers they never received, many requests touch the same wallet at once, and the processes and the broker between them can stop at any moment. The design follows from four rules.
Outcome: you can model a payment, a refund and a transfer as balanced journals of integer postings, explain why only wallets keep a cached balance, and check the books with a query.
Outcome: you can explain why a check-then-debit must run on a locked row, take locks in an order that cannot deadlock, bound lock waits, and recognise when a shared row should not be locked at all.
Outcome: you can explain what an idempotency key promises, implement it so that duplicates arriving at the same moment are handled, and decide which responses to remember.
Outcome: you can explain the dual-write problem, implement an outbox with competing relays, and state precisely which duplicates remain and why.
Outcome: you can read config/topology.json, explain what each exchange, queue and argument does, and say why every service has its own broker user.
Outcome: you can explain when a consumer may acknowledge a message, build an inbox so redelivered messages change nothing, and handle poison messages and transient failures differently.
Outcome: you can sign and verify webhooks, decide which delivery failures to retry, build delays and a parking lot from broker features, and stop a webhook sender being used to reach internal systems.
Outcome: you can explain each reconciliation check and why it runs in one snapshot, give each process the least database access it needs, make history append-only, and change the schema safely with migrations.
Outcome: you can say which metric answers which operational question, read the alert rules and their blind spots, and follow one request through every service's logs.
Outcome: you can choose the right test level for a guarantee, write a test that makes a race actually happen, simulate a crash at an exact line, and interpret a test failure under load.
Starting point: a machine with Docker, Git and Python 3, and the project's source files. End point: checked tools, free ports and fifteen secret files in source/.lab/secrets/. Nothing is running yet.
Starting point: secrets generated. End point: twelve services running or completed: PostgreSQL with the schema and roles, RabbitMQ with its topology, the API, two relays, both consumers, the lab receiver and Prometheus.
Starting point: a healthy stack. End point: an API key, a funded buyer wallet, a seller account and a payment you have sent twice and been charged for once.
Starting point: a payment made through the API. End point: a seller webhook endpoint registered, a second payment delivered to it with a valid signature, and the same correlation ID found in every service's logs.
Starting point: webhooks being delivered. End point: a webhook that failed four times, waited in three delay queues, was parked, raised an alert, and was delivered after you fixed the receiver and replayed it.
Starting point: a working stack. End point: a drill report showing no server errors and replayed duplicates, and a passing reconciliation.
Starting point: the stack has handled traffic. End point: every Prometheus target up, and queries answering the operational questions: error rate, outbox age, idempotent replays and webhook outcomes.
Starting point: a running stack. End point: lint, unit, integration and end-to-end tests passing, and an understanding of how a code or schema change is released.
Starting point: any state, including a half-finished or failed milestone. End point: no project containers, network, volumes, images or secrets left, confirmed by checks that print nothing.
Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.
Runs entirely on your machine with Docker Compose: about 2.5 GB of image downloads and a few hundred megabytes of local volumes. No cloud account, paid service or hosted lab is used or included.
Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Python packages and container images downloaded when building, such as FastAPI, psycopg, pika, PostgreSQL and RabbitMQ, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.
You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.
Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.
No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.
The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.
The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.
Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.
Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy