Skip navigation
A backend practice that might crash your system.
0:00 / 1:12

A backend practice that might crash your system.

F.O.L.A

@folaoftech26K followers

Visit on X
674 likesDownloadOriginal post

33,065 views

A backend practice that might crash your system.

19 Comments

Comments from the original post on X (Twitter)

  • Abioye_E.?T's profile picture

    @thawhyte

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

    6 likes

  • thedefiprof's profile picture

    @0xdefiprof

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

    2 likes

  • 👾's profile picture

    @itsvalakov

    Hmm

    1 like

  • F.O.L.A's profile picture

    @folaoftech

    🎥/tk: @tobio133

    1 like

  • Designer's profile picture

    @Designerytg

    This code sef isn’t safe enough

    1 like

  • Shettimax's profile picture

    @Shettima349

    skill issue , your database design should handle this !

    1 like

  • F.O.L.A's profile picture

    @folaoftech

    How

    1 like

  • John Doe's profile picture

    @StanleyMasinde_

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

    1 like

  • MEGAMIND's profile picture

    @megamindcodex

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

    1 like

  • Greatness's profile picture

    @busayo9ja

    Fintech engineers, i greet una😂😂

  • Odera's profile picture

    @OderaPG

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

  • Elchapi's profile picture

    @ElchapiD

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

  • John A's profile picture

    @ayindejo

    More of that waiting for me tomorrow morning 🥺

  • Mr. Kenny's profile picture

    @kennystonnne

    I'd recommend 2-phase commit

  • Vencedor Zest's profile picture

    @VencedorZest

    🙏

  • NickieNickie's profile picture

    @NickieNickiee

    Let's connect

  • The Tech Prophet (Amospikins)'s profile picture

    @Amospikins

    Sharrrrppppp

  • Novha 21012's profile picture

    @novhakaze

    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

    @charleeotaru

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