Buchy (@dev_buchi) header
Buchy (@dev_buchi) profile picture

Backend Engineer | Web3 | Golang | Java | Laravel | Mod @BerfBased

127.0.0.1
Joined May 2018
Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)Photo by Buchy (@dev_buchi)
Database Transactions One thing you don't want in a wallet system is money leaving one account without reaching the other. I am building PropInvest, a property investment platform where users can fund wallets and invest in real estate. When an investor puts money into a property, the system needs to: - Deduct funds from their wallet - Create the investment record - Update the property's funding status - Log the transaction Now, what happens if the wallet is debited, but the server crashes before creating the investment? The investor's money is gone, but they don't own any shares. That's a nightmare. This is why database transactions matter. A database transaction lets you group multiple operations together so they either all succeed or all fail. If the wallet debit, investment creation, and transaction log all succeed, the transaction commits. If any step fails, everything rolls back. The wallet stays untouched. No partial state. This is called atomicity, the A in ACID. ACID stands for: - Atomicity: All operations succeed, or none do. - Consistency: The transaction preserves database rules and constraints. - Isolation: Concurrent transactions don't interfere with each other. - Durability: Once committed, changes persist even if the system crashes. For PropVest's wallet operations, every debit, credit, and record is wrapped in the same database transaction. One important detail though: this protects database changes within that transaction. It doesn't automatically reverse an external action, like a payment already sent to Paystack. That is why I also used idempotency keys, locked balances, and reconciliation workers. But transactions were the foundation. When handling money, a successful API response isn't enough. You need to make sure the underlying operations are actually safe. Never assume your code will complete every step. Design your database operations to handle failure.
🤖 Made with AI
2
1
3
196
Buchy retweeted
To anyone who cares to listen. Please if you intend to relocate abroad either for work or study, don't plan your future around earning minimum wage. Dreams are free. You should dream bigger for yourself. It's not funny to be poor anywhere in the world. You may think you'll be better off especially when your baseline is Nigerian minimum wage and you constantly convert from euro to naira. You will SPEND euro! I don't know what you want for yourself, but you should want something more than a life of poverty. Poverty in a country where your skin colour gives you away easily as a foreigner is different from any type of poverty you may have experienced in your home country.
🇩🇪Germany’s minimum hourly wage will be €14.60 starting next month Even washing dishes guarantees: €2,530/month! If your German is good, €3,000/month is easy! If you have a trade, €3,500/month is a breeze! The best part is you only work 40 hours a week and clock out on time💯
5
52
1
230
9,531
You have one life. Start living like the person you want to become. One day, you'll look back and realise you've become that person. It works like mad did this over and over again.
15
107
9
924
12,915
Buchy retweeted
the bar is lower than you think
ok so apparently just learning the 2,000 most common Russian words covers like 90% of everyday speech. literally all i have to do is not be a lazy idiot
113
1,654
77
20,029
375,135
perspective
ok so apparently just learning the 2,000 most common Russian words covers like 90% of everyday speech. literally all i have to do is not be a lazy idiot
48
Stop dwelling on your losses, they’re a part of life. We all have them. Please, do me a favor. You can’t look backwards. I promise you .. your interest in dwelling about yesterday is stopping you from attacking today, which is keeping you away from being happy tomorrow. The greatest cancer, pandemic, illness, issue, darkness that most of you are facing is your infatuation with yesterday that you have no control over … everyone’s necks are broken out here from looking backwards. If you’re not doing, if you’re not going for it, you’re just crying … and you’re crying because you’re not doing even though you know the answer. You’re either insecure or your dwelling about “missed opportunities” … or the worst two words to start a sentence: “I wish.” Dwelling is the poison of society. This should be shared at a record rate, because everyone has someone in their family or inner circle that can’t stop complaining about the past. The greatest gift we can give someone we love is the ability to let go of something that isn’t contributing to their tomorrow.
52
142
6
1,093
71,984
Buchy retweeted
Now i understand why older people are calmer. after you’ve died enough times inside, you learn to breathe, let go and just be.
226
7,121
177
33,367
478,939
Nigeria's tech ecosystem is heading in a new direction over the next decade. A new generation of companies is emerging, particularly in cloud infrastructure, SaaS, and deep tech. We're gradually moving beyond the fintech-heavy era, and I think we're about to see a whole new wave of innovation come out of Nigeria. Exciting times ahead.
44
100
36
622
27,416
crazy!
RAISED: Chowdeck (@chowdeck) has raised $21 million in Series B funding. The food delivery startup is doubling down on its ambitions to transform on-demand delivery across Africa. In a special edition of Tech This Week, Chowdeck’s Co-founder & CEO, Femi Aluko (@LordBinary_), joins me to discuss the raise and what comes next for the company. Join us SOON live on X and YouTube.
76
Today my teacher said to me 'Only one in a million make it as a footballer' I told him I'm that 1 ❤⚽
369
6,682
1,197
31,217
I rebuke stagnation, I will make progress…
I rebuke stagnation, I will make progress…
1,138
6,008
4,786
29,325
1,000,998
Again, money makes you a better sibling, friend and partner.
188
7,263
364
31,667
526,697
Never go back to zero folks. Avoid this with everything you have. If you're not careful, your own mind will work against you.
1
60
And if you're at zero, don't relent. Do not compare your journey with everyone else's. Avoid measuring your progress against your past success. Only ingratitude and dissatisfaction lies at the end of that tunnel.
7
Buchy retweeted
People don’t respect struggle. They respect results. Once you fail too long, even love turns into tolerance… then distance.
Hit me with the harshest reality truth
309
13,509
255
58,093
906,656
100%. starting mine next year. B.Eng Computer Engineering MSc Information Technology (in view)
My personal experience: Start Masters in Nigeria while still applying abroad. Your Masters in Nigeria may eventually be the stepping stone to moving abroad.
1
2
218
last last i go get multiple masters
29
Buchy retweeted
You seriously underestimate how much you can do with time. 1 year is a fucking lifetime. 6 months is enough to go from 0 to 100. Even 1 week of full commitment 14 hours a day is enough to push the needle so far forward you won't even recognize yourself. Just do more. Just do what your heart desires. Just be better.
18
160
1,538
33,433
what??!!!
If you collect money from a senior pastor, You are reducing your blessings - Pastor David Ibiyeomie
48
what? you think is impossible? or not necessary? I'm trying to understand the exact reason for this foolish question. I expected you to ask why he wants to build it so that we can educate you, that's a more valid question than "how".....
Dear Obi, Tell us how those 10k health centers will b built
2
65
We are very quick to blame the white man; after all he decieved us, he stole from us, he kidnapped and sold our ancestors as slaves. One fact we often overlook however, is the part our own kin played in this.
1
1
44
It is sad that in this day and age, we still have men like that amongst us who under the guise of "democracy", have decided to align themselves with candidates who are so obviously not the right fit for governance (and this is putting it very politely).
1
9
Why else would men like Yul Edochie and Kenneth Okonkwo be so vocal about their selfish political alignments?
13