跳过导航
A backend practice that might crash your system.
0:00 / 1:12

A backend practice that might crash your system.

F.O.L.A

@folaoftech2.6万 位关注者

在 X 上查看
674 个赞下载原帖

33,065 次观看

A backend practice that might crash your system.

19 条评论

评论来自 X (Twitter) 上的原帖

  • Abioye_E.?T 的头像

    @thawhyte

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

    6 个赞

  • thedefiprof 的头像

    @0xdefiprof

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

    2 个赞

  • 👾 的头像

    @itsvalakov

    Hmm

    1 个赞

  • F.O.L.A 的头像

    @folaoftech

    🎥/tk: @tobio133

    1 个赞

  • Designer 的头像

    @Designerytg

    This code sef isn’t safe enough

    1 个赞

  • Shettimax 的头像

    @Shettima349

    skill issue , your database design should handle this !

    1 个赞

  • F.O.L.A 的头像

    @folaoftech

    How

    1 个赞

  • John Doe 的头像

    @StanleyMasinde_

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

    1 个赞

  • MEGAMIND 的头像

    @megamindcodex

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

    1 个赞

  • Greatness 的头像

    @busayo9ja

    Fintech engineers, i greet una😂😂

  • Odera 的头像

    @OderaPG

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

  • Elchapi 的头像

    @ElchapiD

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

  • John A 的头像

    @ayindejo

    More of that waiting for me tomorrow morning 🥺

  • Mr. Kenny 的头像

    @kennystonnne

    I'd recommend 2-phase commit

  • Vencedor Zest 的头像

    @VencedorZest

    🙏

  • NickieNickie 的头像

    @NickieNickiee

    Let's connect

  • The Tech Prophet (Amospikins) 的头像

    @Amospikins

    Sharrrrppppp

  • Novha 21012 的头像

    @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 的头像

    @charleeotaru

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