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
161
Replying to @Jamesmikecodes
done bro
2
Replying to @Krizzle_Gaucho
have you gotten an offer yet?
44
this is a bad take
14
I just got a $30/hr offer from Mercor for a SWE gig (Dawn writer - Software engineer). Only catch is I must have a Macbook and i don't own one. If you can do this, dm me.
129
I got the same offer, dm me bro
1
1
33
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
187
6,697
117
27,971
393,906
Replying to @ibkkkkkkkkkk
lmao 🤣
33
last last i go get multiple masters
22
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
187
hello Anita, pls check dm
1
34
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
365
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,543
33,044
what??!!!
If you collect money from a senior pastor, You are reducing your blessings - Pastor David Ibiyeomie
44
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,360
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