Skip to content

Edit history

Post #1 in Discord bot for order notifications: architecture notes

Insertions are highlighted in green, deletions in red and struck through.
  1. Current version

    Edited by Sandglass ·

    Reason: Fixed a link

    18 added · 0 removed

    Built a bot that posts new store orders into a private staff channel. Architecture: - Store webhook → small HTTP endpoint → queue → bot posts the message. - The queue means a Discord outage doesn't lose orders. - Webhooks are verified with the store's signature header. - Customer details are minimised: order number, items and total only. Biggest lesson: verify webhook signatures from day one. We got junk requests within a week of going live.
  2. Version 3

    Edited by Sandglass ·

    Reason: Clarified the numbers

    1 added · 1 removed

    Built a bot that posts new store orders into a private staff channel. Architecture: - Store webhook → small HTTP endpoint → queue → bot posts tehthe message. - The queue means a Discord outage doesn't lose orders. - Webhooks are verified with the store's signature header. - Customer details are minimised: order number, items and total only.
  3. Version 2

    Edited by Sandglass ·

    Reason: Added details

    1 added · 1 removed

    Built a bot that posts new store orders into a private staff channel. Architecture: - Store webhook → small HTTP endpoint → queue → bot posts teh message. - The queue means a Discord outage doesn't lose orders. - Webhooks are verified with tehthe store's signature header. - Customer details are minimised: order number, items and total only.
  4. Original

    Posted by Sandglass ·

    Built a bot that posts new store orders into a private staff channel. Architecture: - Store webhook → small HTTP endpoint → queue → bot posts teh message. - The queue means a Discord outage doesn't lose orders. - Webhooks are verified with teh store's signature header. - Customer details are minimised: order number, items and total only.