
Software Engineer & Technical Lead | Node.js/TS, Go, Python, PostgreSQL. Open to opportunities. Github : https://teapawt.net/t.co/yyB5mToxx2
Joined March 2015
- Tweets4.9K
- Following610
- Followers439
- Likes3K
A wallet infrastructure platform built to be engineered, not shipped. 🧵
VaultPay is a fictional wallet system: businesses create digital wallets, move money between them, and integrate payments through a documented API.
It doesn't exist to acquire users. It exists to be built to the standard a real Nigerian fintech would hold itself to, correctness, auditability, concurrency safety, fraud control, and observability.
Reasoned from first principles, not copied from a tutorial.
Thanks @ExFacademy for the opportunity to learn from your platform, looking forward to the great outcome of this program...
#ExploitForgeAcademy
Your MVP probably doesn't need 10 microservices.
Start with a well-structured monolith unless your requirements justify something more complex.
Fewer services can mean fewer deployments, less infrastructure, simpler debugging and lower operational costs.
Architecture should solve problems, not create bills.
1
2
70
If you're using a VPS with docker on your application, your production configuration will need to:
Keep database and Redis private.
Expose the API only to the reverse proxy.
Require strong production database credentials.
Configure the application for production.
Preserve database and Redis data through persistent volumes.
If you use worker, keep the worker separate from the API.
Avoid running migrations automatically when containers start.
45
If you're using VPS and possibly Ubuntu OS for your server...
Before deploying a single line of application code, make sure you harden the SSH, configure the firewall, updated Ubuntu, installed Docker, and prepared swap space.
Because deploying an application isn't just about making it run. It's about preparing the environment in which it will run.
might be creating a series of posts on this, stay glued...
As Always...
Stay liquid. 💧
@Greegman
Software Engineer
2
58
Things we see for this street. 😂
Yesterday, I got my Mastercard from @gtbank. Tried using it to renew some subscriptions and buy a domain for a client, but the transactions kept declining.
So I tagged @gtbank on X to complain.
My people, within minutes, 6–7 different accounts with “GTBank” in their names started quoting my tweet, asking me to DM different numbers. 😳 🤣
Some had 1–20 followers. Some no even reach that. 😂
Shaa, I ignored them because this no be my first rodeo.
But this got me thinking, especially as a founder.
Security is not just about protecting your systems. It's also about protecting your users from the people who want to exploit their trust in your brand.
Guaranty Trust may not be responsible for creating those fake accounts, but shouldn't they be proactive enough to identify and report accounts impersonating them, especially when those accounts are actively targeting customers who publicly complain about their services?
Imagine someone who doesn't know better falling for it, sharing sensitive information, and losing money.
The customer may have interacted with a fake account, but in their mind, they were seeking help from GTBank. Guess whose reputation takes a hit?
As founders, we need to think beyond telling users to be careful. What are we doing to make it harder for scammers to exploit them in the first place?
Some things you can do:
- Actively monitor and report accounts impersonating your brand.
- Make your official support channels easy to find and verify.
- Warn users about common scam tactics and what your support team will never ask them to share.
- Give customers a safe, reliable way to report suspicious accounts and messages.
- Have a clear process for responding when users are targeted.
You may not be able to stop every scammer, but you can reduce the chances of your users falling victim.
And let's be honest, unsolicited emails and fake support messages are becoming too common. 💀
Your security responsibility doesn't end at your application's firewall. It also includes the trust users place in your brand.
Abeg, make una shine una eyes, and founders, make we do better.
E really cold outside. 🥶
As Always
Stay liquid. 💧
@Greegman
Software Engineer
If your startup serves lots of images, videos or files, storage costs can creep up.
Compare your current provider with alternatives like Cloudflare R2, especially if bandwidth charges are eating into your budget.
Don't compare storage prices alone. Compare storage, requests and data transfer together.
22
You don't always need to pay for a separate DNS or CDN service.
Cloudflare offers free DNS management, SSL options and CDN features that can help startups reduce infrastructure costs.
Before paying for another service, check what you already have access to.
Small savings compound.
You don't always need to pay for a separate DNS or CDN service.
Cloudflare offers free DNS management, SSL options and CDN features that can help startups reduce infrastructure costs.
Before paying for another service, check what you already have access to.
Small savings compound.
Your startup might not need AWS yet.
A reasonably sized VPS can host your API, database and background workers when the workload allows it.
You can always move to managed cloud services as your needs grow.
Don't pay for infrastructure you haven't grown into.
Start lean. Scale when necessary.
32
Small tip for founders trying to cut costs 👇
You don't always need to pay for business email to have an official address like [email protected].
If you own a domain, Cloudflare Email Routing lets you create custom email addresses and forward incoming emails to your existing inbox for free.
One less expense for your startup.
Save your money for what actually needs it.
Happy New Week guys
As Always...
Stay Liquid
4
1
173
No QA team in the world can guarantee that your product will be completely free of bugs.
Your best testers might just be your users.
Think about it.
Your QA team will test the product based on requirements, test cases, expected behaviour, and all the edge cases they can think of.
But users?
Users will interact with your product in ways you probably never imagined.
They'll click buttons in weird sequences, submit things you never expected, use features in ways you never designed for, and somehow discover a bug that nobody on your team could reproduce.
And sometimes, they'll uncover problems that aren't even bugs in the traditional sense, but frustrating experiences your team never considered.
That's why, especially as a founder building in the early stages, I'll always advise you to stay close to your users.
Watch how they use your product. Listen to their complaints. Pay attention to where they get stuck.
Don't just ask them if they like your product. Find out where it frustrates them.
Your QA team helps you catch problems before release. Your users help you discover problems you didn't even know existed.
And that feedback is incredibly valuable when you're still figuring out what your product should become.
Of course, this doesn't mean you should skip proper testing because your users will find the bugs anyway.
That's a terrible engineering strategy.
It means you should understand that testing doesn't end when your QA team gives the green light.
Your QA team tests what you built. Your users reveal what building it actually means.
Stay close to them. They'll teach you things no test case ever could.
As Always...
Stay Liquid 💧
4
51
One bad thing about knowing too many things as a software engineer is that it can stop you from building anything at all.
The more you learn, the more things you realise can go wrong.
You start thinking about scalability before you even have users.
You worry about race conditions before you've written your first concurrent operation.
You're thinking about security, performance, system design, and every possible edge case before your MVP even exists.
And before you know it, you've spent more time thinking about what could fail than actually building something.
Funny enough, the knowledge that should make you a better engineer can sometimes make you afraid to start.
You become more pessimistic than optimistic.
You see ten reasons why something might fail before giving it one chance to work.
So, how do you get out of this?
Start building.
Not recklessly. Not by ignoring everything you've learned. But by understanding that you cannot anticipate and prevent every possible failure before writing a single line of code.
Some things you'll get right from the beginning.
Some things you'll get wrong.
And some problems won't even make sense to you until you encounter them in a real implementation.
That's part of the process.
Apply the knowledge you have. Handle the risks you can identify. Make reasonable decisions with the information available to you.
Then solve the unknowns as they show up along the way.
You don't need to know everything before you start building. You need to know enough to take the next step.
Don't let the fear of building the wrong thing stop you from building anything at all.
After all, you can't learn from every mistake you're trying so hard to avoid if you never give yourself the chance to make progress.
Anyways,
Stay Liquid 💧
1
3
64
One thing building Cookeaze made very clear to me:
Payment and settlement are not the same thing.
A customer pays ₦20,000 for an order.
The payment succeeds.
Does that mean the rider, warehouse, or seller should immediately receive their money?
Not necessarily.
The order still needs to be fulfilled.
The rider may still need to deliver it.
A dispute could still happen.
So:
Payment answers:
"Did we receive the money?"
Settlement answers:
"Now that the transaction has been completed, who should ultimately receive the money?"
That distinction is important when building systems involving wallets, escrow, delivery and disputes.
A successful payment doesn't necessarily mean a successful transaction.
And that's one of the financial concepts I've had to think about while building Cookeaze.
11
You have a database transaction.
You create an order and need to publish an event so another service can process it.
A developer might write:
BEGIN TRANSACTION
Create order
COMMIT
Publish "OrderCreated" event
Looks fine.
But what happens if the application crashes after 'COMMIT' and before 'Publish'?
The order exists.
But the event was never published.
Now your database says:
“Order created.”
Your event-driven system says:
“I never heard about it.”
This is one of the problems the Outbox Pattern is designed to solve.
Instead of trying to update the database and publish an external event as two separate operations, we store the event in an outbox table in the same database transaction.
Something like:
BEGIN TRANSACTION
Create order
INSERT INTO outbox_events (
event_type,
aggregate_id,
payload
)
COMMIT
Now both operations succeed or fail together.
The database contains:
orders
----------------
id: 123
status: pending
outbox_events
----------------
id: abc
event: OrderCreated
aggregate_id: 123
status: pending
A separate worker can then read pending events from the outbox and publish them to your message broker or external system.
Database
│
├── orders
│
└── outbox_events
│
▼
Worker
│
▼
Message Broker
│
▼
Consumers
Now if the application crashes immediately after the transaction commits, the event isn't lost.
The order and the intention to publish the event were committed together.
But there's an important detail:
The Outbox Pattern does NOT guarantee that an event is published exactly once.
A worker could:
1. Read the event
2. Successfully publish it
3. Crash before marking the outbox event as processed
When the worker restarts, it may publish the same event again.
So consumers still need to handle duplicate events.
This is where idempotency comes in.
That's why these patterns are connected:
Outbox => reliable delivery
Idempotency => safe duplicate processing
And this is the bigger lesson:
We're not trying to pretend distributed systems are perfectly reliable.
We're designing the system so that when something inevitably fails, we can recover without corrupting the state.
Next up: Idempotency, how do you safely process the same operation twice?
23
So if calling an external service inside a database transaction can cause all these problems, what should we do instead?
The answer isn't simply:
“Never call external services.”
Real applications need to communicate with payment providers, email services, notification systems, shipping providers, third-party APIs, and many other systems.
The real question is:
How do we coordinate with them without making our database transaction depend on them?
A common approach is to separate the two operations.
For example, instead of:
BEGIN TRANSACTION
Create order
Call payment provider
Update order
COMMIT
We can do something closer to:
BEGIN TRANSACTION
Create order
Record that payment needs to be processed
COMMIT
Then, outside the transaction:
Process payment
↓
External payment provider
↓
Update our system
Now our database transaction is short and only responsible for changes inside our database.
But we've introduced a new problem:
How do we reliably make sure that “payment needs to be processed” actually gets processed?
This is where patterns like the Outbox Pattern become useful.
And there's another problem:
What happens if we send the request to the payment provider, the provider processes it, but our application times out before receiving the response?
We need idempotency.
What if the provider is temporarily unavailable?
We need retries with backoff.
What if the provider processes the payment but our system never receives the webhook?
We may need reconciliation.
What if the operation keeps failing?
We may need a dead-letter queue or another mechanism for manual/recovery processing.
So solving this problem isn't about finding one magic replacement for the database transaction.
It's about designing the workflow around the fact that:
External systems can fail independently of your database.
A robust architecture therefore considers:
→ Short database transactions
→ Outbox/event publishing
→ Idempotency
→ Retries and backoff
→ Webhooks
→ Reconciliation
→ Timeouts
→ Dead-letter handling
→ Proper state machines
And importantly, not every application needs all of these.
The right solution depends on the workflow, the consistency requirements, and what happens when things fail.
I'll break these patterns down individually because each one solves a different part of the problem.
Starting with the Outbox Pattern.
1
34
One thing I see developers do that looks reasonable at first:
Putting an external service call inside a database transaction.
Something like:
BEGIN TRANSACTION
Create order
Call payment provider
Update order
COMMIT
The intention is understandable: "If anything fails, roll everything back."
But there’s a problem.
Your database transaction only controls your database. It cannot roll back what happened at the payment provider.
Now imagine the payment provider takes 8 seconds to respond.
Your transaction stays open for those 8 seconds.
That can mean:
→ DB connections stay occupied longer
→ Locks may be held longer
→ Other requests may have to wait
→ Connection pools can become exhausted
→ External service latency becomes your DB transaction latency
→ A timeout can leave you with an ambiguous result
And the scary one:
The external service may successfully process the request, but your application times out before receiving the response.
Now you retry.
Did you just process the payment twice?
This doesn't mean external services should never be involved in workflows that use transactions.
It means we need to be deliberate about where the transaction ends and how we coordinate with systems outside our database.
There are better patterns for this.
I'll break down how to handle this safely in the next post. 😄
27








