Skip to main content
Joung Park
Software Developer
View all authors

Turning SES bounces into a send-time block list

· 5 min read
Joung Park
Software Developer

Sending at scale does not stop when mail leaves Simple Email Service. Permanent bounces hurt reputation and waste work if those addresses stay in eligibility lists. The goal is to capture bounce feedback, keep a durable block list, and refuse sends at the messaging API before traffic reaches SMTP or SES again.

The send path already lived in a JavaScript service on EC2 (PM2, CodeDeploy). That stack is fine for GraphQL and SMTP, but a poor home for a long-lived queue consumer. The design adds event-driven components alongside messaging: configuration set, SNS, SQS, a bounce processor Lambda, and a shared Mongo collection the API reads on every send.

AWS AppConfig: Feature Flags, Configuration, and How Services Read Them

· 8 min read
Joung Park
Software Developer

We centralized feature flags and service configuration in AWS AppConfig instead of a monolith flag store and S3 env files baked in by CI/CD. Amazon’s AppConfig Agent or extension delivers settings on localhost:2772; backend services use one shared library with the same read pattern on every stack. Fictional examples: payments-api, client-app, flag enable_new_checkout_flow.

Bulk email without burning reputation

· 7 min read
Joung Park
Software Developer

Large-scale reminder campaigns needed to reach a large eligible audience without a single-day blast that would spike SES throttling, bounces, and complaints. Reputation here was mostly an operations problem: control how much mail leaves per day and how fast it hits SES, then watch Virtual Deliverability Manager (VDM) while sending.

The code does not score reputation. It paces volume, targets an average send rate within each batch, deduplicates by send date, and filters eligibility in SQL. Below: the two guardrails, how createBatches and runBatch enforce them, and the path through Kafka and the messenger Lambda to the messaging API and SES.

Microservice Patterns: Rules, Boundaries, and Commands

· 11 min read
Joung Park
Software Developer

We run a fleet of Nest services on ECS and PM2, with Kafka for domain integration and Firebase at the API gateway. That stack only works if we agree on a few defaults: who owns data, when to use events versus HTTP, how contracts are defined, and where auth stops. This post is our engineering playbook for those defaults—not a claim that every service already matches them. Some rules describe where we want to be (for example strict one-database-per-service everywhere); others we apply today with known gaps (consumer backoff patterns still being defined).

The post has three parts: ten foundation principles, patterns for crossing domain boundaries (with Order and User as the running example), and a payment debit/credit case study on why implicit event listeners are painful and what explicit commands buy us.

OpenTelemetry in Production: When Auto-Instrumentation Stops (MSK, Outbox, Cron)

· 13 min read
Joung Park
Software Developer

We already had distributed logging—enough to grep across services when something broke. What we did not have was a single picture of a request as it crossed HTTP, Kafka, Lambdas, and long-running Node workers on PM2. Tracing was the next pillar; we chose OpenTelemetry so instrumentation stays vendor-neutral while we export spans to Elastic APM today and can change backends later without rewriting apps.

This post follows how we rolled it out: Collector topology, auto-instrumentation on the happy path, then where auto stops and how we fix it (withTraceSpan at entry points, propagation.inject on outbox commit)—not a full CDK or Dockerfile runbook.

From Event Modeling to a Kafka Saga: Tournament Entry Case Study

· 17 min read
Joung Park
Software Developer

We Event-Modeled a multi-team tournament product to keep delivery scalable: domain squads own slices on one board, and later features can often subscribe to events already on the timeline instead of rewiring core flows.

This case study follows three beats:

  1. Why Event Modeling — product-wide board, Conway-aligned teams, event contracts.
  2. Event Modeling in practice — the seven steps on the tournament entry process (diagrams, abbreviated tickets).
  3. Running tournament entry — Saga and CQRS-style read paths as the runtime shape that matches the model.

We modeled the whole tournament; this post zooms into tournament entry for depth on fan-out, orchestration, and compensation. Simplified example; reflects how we modeled, sliced, and shipped the work.

Migrate AMQ to Kafka

· 9 min read
Joung Park
Software Developer

As our system moved from a monolith towards microservices, services needed a way to communicate without depending on one another directly. We used ActiveMQ, managed through Amazon MQ, for that messaging. Later, we moved to Kafka on Amazon MSK.

This was not simply a change of hosting provider. ActiveMQ and Kafka have different messaging models, so the migration made us revisit how we publish, consume, and operate events. Here is why we made the move, what changed, and what I would keep in mind when planning a similar migration.

Step-Up Verification: OTP, Magic Link

· 8 min read
Joung Park
Software Developer

We already use Firebase Authentication for primary login—ID tokens on the client, verified on the backend with the Admin SDK. That answers who the user is. It does not always prove they still control the account at the moment they confirm a payment, change payout details, or export sensitive data. Step-up verification—email one-time passwords (OTP) or magic links—closes that gap.

Step-up does not replace Firebase. Users keep sending the same ID token; sensitive routes additionally require recent proof via email. Because Firebase is already in the stack, Firebase email-link sign-in was the obvious first idea. This post compares that shortcut with a custom OTP service layered on the same auth.

Share a Kafka Topic Only When Order Matters

· 9 min read
Joung Park
Software Developer

We merged Kafka topics because the same services consumed the messages together. It felt simpler. Two incidents showed what we had really done: one shared topic means one shared queue, one failure domain, and one on-call problem—not a tidy folder in a repo.

My default rule: share a topic only when order matters for a clear stream (same partition key, same lifecycle). If urgency, retries, batch vs live traffic, or ownership differ, split the topics. Below I explain why we merged, what broke in production, when one topic is still right, and defaults that help teams avoid the same mistakes.

Find Similar Sentences Using Embeddings and a Vector Database

· 11 min read
Joung Park
Software Developer

I'm building Second Memory—a personal memory app where users save entries and ask natural-language questions later. They often remember meaning, not the exact words they wrote. For example, they might have saved:

  • "I forgot my umbrella and got soaked in the rain."
  • "I lifted weights at the gym after work."
  • "I caught up with John over coffee yesterday."
  • "I stayed up late debugging my application."

Later they ask "Who did I meet recently?" The best match is I caught up with John over coffee yesterday.—but keyword search can miss it when "meet" and "caught up" differ. Below: semantic search with a local embedding model (no API key), cosine distance, ranking memories in Python, then storing and querying vectors with pgvector.