UNSUBSCRIBE - #136
UNSUBSCRIBE#136arnavs-0 wants to merge 6 commits into
Conversation
|
This provisions a new SES mailing list resource. Can we use our own database for tracking instead? It would be a cleaner source of truth. Two ideas off the top of my head:
Technically, (2) requires each user to have an account but I think our auth system is seamless enough that its not an issue. |
|
from gemini: Here is a complete, copy-pasteable summary of the architecture and workflow for handling AWS SMS and SES events in a Next.js application. AWS SMS & SES Event Webhook Workflow (Next.js)This workflow centralizes all communication events (SMS replies, SMS opt-outs, email bounces, and email unsubscribes) into a single Next.js webhook powered by Amazon SNS. Phase 1: The Next.js Webhook (The Event Hub)You need a single public endpoint to receive, verify, and process all event payloads from AWS.
Phase 2: AWS SNS Setup (The Router)SNS acts as the middleman between your communication services (SMS/SES) and your Next.js application.
Phase 3: AWS SMS & Two-Way RoutingConfigure your SMS resources and tell AWS to route inbound messages/opt-outs to your SNS topic.
Phase 4: AWS SES Email Events & UnsubscribesConfigure SES to push delivery stats and unsubscriptions to your SNS topic.
Would you like me to generate a sample database schema (e.g., Prisma or SQL) for storing these user preferences, bounces, and opt-outs? |
# Conflicts: # supabase/migrations/meta/_journal.json
|
works in test but no clue about prod. check the md doc for more info. This needs a SecureString in AWS |
closes #135