# How We Rebuilt Photon's Shared iMessage Routing to Handle 10M+ Messages a Day Page: https://stenobird.com/podcast/tech-stories-tech-brief-by-hackernoon-6365648/how-we-rebuilt-photon-s-shared-imessage-routing-to-handle-10m-messages-a-day Text version: https://stenobird.com/podcast/tech-stories-tech-brief-by-hackernoon-6365648/how-we-rebuilt-photon-s-shared-imessage-routing-to-handle-10m-messages-a-day.md Podcast: [Tech Stories Tech Brief By HackerNoon](https://stenobird.com/podcast/tech-stories-tech-brief-by-hackernoon-6365648) Published: 2026-07-09T16:01:17+00:00 Episode link: https://share.transistor.fm/s/576f84f4 Audio file: https://media.transistor.fm/576f84f4/575f657d.mp3 Processing state: not_requested JSON: https://stenobird.com/v1/public/podcasts/tech-stories-tech-brief-by-hackernoon-6365648/episodes/how-we-rebuilt-photon-s-shared-imessage-routing-to-handle-10m-messages-a-day Duration seconds: 1149 ## Resource This story was originally published on HackerNoon at: https://hackernoon.com/how-we-rebuilt-photons-shared-imessage-routing-to-handle-10m-messages-a-day . How we rebuilt Photon's shared iMessage routing to handle 10M+ messages a day — migrating Bun to Node, fixing a memory leak, and adding a Postgres event log. Check more stories related to tech-stories at: https://hackernoon.com/c/tech-stories . You can also check exclusive content about #imessage , #messaging-app , #photon-imessage-api , #imessage-ai-agent-platform , #imessage-routing , #message-scaling , #postgres , #good-company , and more. This story was written by: @photonhq . Learn more about this writer by checking @photonhq's about page, and for more stories, please visit hackernoon.com . TL;DR: We rebuilt Photon's shared iMessage routing to handle 10M+ messages a day reliably. We migrated the runtime from Bun to Node.js to unlock OpenTelemetry tracing and kill silent gRPC failures, fixed a Promise.race memory leak that ballooned pods to 5 GB, corrected a binding-cache bug that silently dropped messages, and replaced per-request fan-out with a durable Postgres event log — deleting 5,207 lines of coordination code along the way. ## Actions - request_transcript: `POST https://stenobird.com/v1/public/podcasts/tech-stories-tech-brief-by-hackernoon-6365648/episodes/how-we-rebuilt-photon-s-shared-imessage-routing-to-handle-10m-messages-a-day/transcription-requests` — Idempotently request low-priority transcript generation for this episode. - read_markdown: `GET https://stenobird.com/podcast/tech-stories-tech-brief-by-hackernoon-6365648/how-we-rebuilt-photon-s-shared-imessage-routing-to-handle-10m-messages-a-day.md` — Read the agent-friendly Markdown representation of this episode resource. A page view does not enqueue transcription. Agents should invoke `request_transcript` explicitly when they need this episode processed. ## Transcript Full transcripts are not published on public pages unless there is a clear rights basis.