Loading video...

Video Failed to Load

Go Home

A backend practice that might crash your system.

33,065 views • 7 months ago •via X (Twitter)

19 Comments

Abioye_E.?T's profile picture
Abioye_E.?T7 months ago

Bro, just let your Db handle the unique constrain on create before debit.

thedefiprof's profile picture
thedefiprof7 months ago

This is quite safe but can still easily be hacked 🥲.

👾's profile picture
👾7 months ago

Hmm

F.O.L.A's profile picture
F.O.L.A7 months ago

🎥/tk: @tobio133

Designer's profile picture
Designer7 months ago

This code sef isn’t safe enough

Shettimax's profile picture
Shettimax7 months ago

skill issue , your database design should handle this !

F.O.L.A's profile picture
F.O.L.A7 months ago

How

John Doe's profile picture
John Doe7 months ago

Good stuff. I recently wrote something on the same. Let us talk about idempotency.

MEGAMIND's profile picture
MEGAMIND7 months ago

He didn't explain this well enough. But okay.

Greatness's profile picture
Greatness7 months ago

Fintech engineers, i greet una😂😂

Odera's profile picture
Odera7 months ago

I nearly got wrecked by this. Thank God my user reported the bug on time.

Elchapi's profile picture
Elchapi7 months ago

Everything is pay pay pay pay pay can’t you guys ever code anything else ?

John A's profile picture
John A7 months ago

More of that waiting for me tomorrow morning 🥺

Mr. Kenny's profile picture
Mr. Kenny7 months ago

I'd recommend 2-phase commit

Vencedor Zest's profile picture
Vencedor Zest7 months ago

🙏

NickieNickie's profile picture
NickieNickie7 months ago

Let's connect

The Tech Prophet (Amospikins)'s profile picture
The Tech Prophet (Amospikins)6 months ago

Sharrrrppppp

Novha 21012's profile picture
Novha 210127 months ago

The principle of idempotency when dealing with payments or checkout: Your system must return the same result when given the same input. So here a payment exists just return 200 or 201. This useful for situations where a payment request is sent more than once.

Leeu's profile picture
Leeu7 months ago

This is not idempotency. You are simply returning everything response to the caller. That is not what idempotency is about.

Related Videos