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

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

127.0.0.1
Joined May 2018
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
148
Replying to @ibkkkkkkkkkk
lmao 🤣
33
last last i go get multiple masters
14
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
1
135
hello Anita, pls check dm
1
20
Replying to @Bellickkruz
just don't die!
14
Replying to @EvansOfWeb3
bullshit, nothing wrong with hedging your investments. 1bn is about 750 - 850k. if your potential was that crazy, then surely you can run 150k back up to 1 mil again, don't you think?
2
358
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
159
1,546
32,926
what??!!!
If you collect money from a senior pastor, You are reducing your blessings - Pastor David Ibiyeomie
39
Replying to @thecyberqueen_
thank u Aeesha. i just enrolled for this. the right link is: plus.columbia.edu/content/ai… and use the promo code above for zero cost. or simply just search the course title and school name on google, it's the first link that pops up
2
3
1
13
1,338
Replying to @EmmaAnu239762
Congratulations Emma! 🔥
1
63
Replying to @Mrjags__ @egi_nupe
you're the mf crying nau 🫩🤣
5
Replying to @Mrjags__ @egi_nupe
ur father!
1
8
Replying to @sagespells
Justin Timberlake - Mirrors
53
Replying to @Somto_babey
Tinubu will round up and hand over the office to Peter Obi in May for sure
1
86
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
60
Replying to @EmmaAnu239762
wishing you the best Emma, go win! 👑
1
25
Replying to @UgwunnaEjikem
agree! 100%
35
Replying to @Meedways1
but your "Lord and personal savior" has drug trafficking-related charges in Chicago and you've been quiet about it 🤷
1
10