Skip to content

Demonstrate strategic email integration patterns with runnable Docker and AWS examples #764

Open

Description

@bbottema

#764: Tactical and strategic email integration patterns

The runnable examples are implemented on the unreleased 10.0.0 development branch and remain separately tracked from #763.
Tracking: #764.
Sources and usage: Strategic Patterns workbench.

Website structure

Add a Patterns hub. Tactical Patterns solve focused SMTP/API problems; Strategic Patterns demonstrate application architecture.
Use textual labels/badges in headers/cards/grouped Docs navigation from shared validated metadata, never color alone.
Preserve the workload field guide's title, URL, directory, all 26 anchors and group-only rail. Strategic pages get their own suitable schema/layout.
Keep reference docs, Journal and Case Studies separate. Cross-link strategies to tactical building blocks and feature references.

Runnable portfolio

Problem Primary stack Runnable variation
Committed transaction triggers tracked notification Spring Boot, PostgreSQL, JobRunr —
Events drive communications Kafka, PostgreSQL RabbitMQ
Long-running process reacts to mail feedback Temporal Camunda
Interrupted nightly run resumes safely Spring Batch, PostgreSQL —
Partners exchange protected documents Apache Camel, local mail/archive —
Incoming mail becomes application data Spring Integration, application HTTP endpoint —

Patterns lead; technologies are a secondary index, not duplicate tutorials. Each chapter explains ownership, flow, SJM acceleration, concrete results
and failures. Applications/frameworks own durable work, scheduling and business state. Project mail facts into application DTOs; do not persist Mailers,
private keys or internal report implementations. Show duplicate input, partial/uncertain acceptance, delayed DSN and absent correlation without exactly-once
SMTP claims or blind replay. SMTP and a database/broker cannot participate in one atomic commit.

Canonical sources: tools/integration-patterns/, outside the published reactor. Generate website downloads from these sources.
Docker Engine/Compose only on host; build current SJM and apps inside containers. No host JDK/Maven/Python, real mail account, external delivery,
mandatory paid/cloud services or dependence on unpublished Central artifacts. Use pinned images/dependencies, health checks, loopback ports,
project-scoped networks/volumes/cleanup, synthetic .test mail and clearly labelled simulated DSNs. Document build/resource/license/architecture limits.
Keep heavyweight UIs optional. Provide consistent up/scenario/status/reset commands, local end-to-end tests and observable persisted results.

Verification and delivery

Run primary apps and variations with local services, not only compilation. Check resumption/idempotency and uncertain-submission handling.
Run metadata/navigation/accessibility/anchor/download tests, website checks, clean build and internal links. Keep heavier Compose checks separate
from library tests. Update feature guidance, README/release history and comparison companion only to the verified level; website prose is version-neutral.

Follow the frontend-design skill using the existing site identity. No new SJM runtime framework or concurrency layers. Preserve concurrent MIME/PIPELINING,
artwork, website/Journal/Case Study work. Track completion of this portfolio independently from #763.

Accepted extension: executable case studies, alternate handoff and AWS

The portfolio also includes the following application examples:

  • RelayDesk: Docker application, PostgreSQL and authenticated per-tenant SMTP fixtures; unchanged article helpers compiled into the app.
  • Polar Meridian: two dispatcher instances, shared PostgreSQL claims/allowance, urgent/routine/bulk isolation, approved failover, protected archive and optional telemetry.
  • CustomMailer: HTTPS handoff and a runnable RabbitMQ variation. Preserve prepared MIME plus envelope; no SMTP server or SMTP-acceptance claim.
  • AWS protected correspondence: the same containerized worker locally and on Fargate; SQS, S3, DynamoDB, SES SMTP, SNS feedback, Secrets Manager and scoped IAM.
  • Equivalent Terraform/CloudFormation foundation and worker deployments, with run-scoped scripts.
  • Curated capability-to-demonstration registry, reference-section links and reciprocal pattern links, backed by executable scenarios.

Keep case-study prose and helper classes intact except supplementary exploration links. Consume canonical helpers in builds/downloads rather than maintaining
forks. All application machinery stays outside published SJM modules. Reuse IBM Plex/teal styling and existing category metadata; meaningful accessible links,
not indiscriminate badges. Website prose remains version-neutral.

AWS scope: ECS/Fargate (not Lambda), protected documents and archive (not only notifications), Terraform plus CloudFormation (not Cloudscape UI).
The user authorized actual AWS prototyping. Use unique run names/tags and an exact resource manifest. Reference the existing SES identity read-only;
never modify production infrastructure, DNS, identity defaults, feedback subscriptions, suppression settings or existing IAM policies. Use demo-only SMTP
credentials, keep secrets out of logs/state/downloads, and send only to SES mailbox simulator addresses. Run deployment formats sequentially and clean up
only resources demonstrably owned by that run. Report resource-derived cost estimates and local-versus-cloud evidence separately. No fixed dollar threshold
was selected: architecture and test scope govern the prototype, not an arbitrary budget tier.

Local AWS fixtures: ElasticMQ, DynamoDB Local, S3Mock and scripted SMTP; injected SES JSON is not a MIME delivery report or proof of AWS conformance.
Implement preflight/plan/deploy/scenario/status/destroy, review changes before provisioning, and record cleanup verification. No public API/UI, ALB, NAT gateway,
RDS, inbound SES reception or account-wide quota coordinator is included.

Development status

  • The maintainer personally reviews the runnable integration examples and Strategic Patterns content before closing this issue. This is the next maintainer review task.

The application sources and accompanying website content are committed to the 10.0.0 development branches. Frameworks, persistence and AWS dependencies remain outside the published SJM modules. The downloadable sources include the canonical helpers and both infrastructure formats, excluding deployment state and credentials.

Activity

  1. added this to the 10.0.0 milestone on Oct 16, 2026
  2. bbottema commented on Oct 16, 2026

    @bbottema
    OwnerAuthor

    Structured delivery-report feature: #763. Implementation plan: docs/plans/764-strategic-integration-patterns.md. Both issues are independently reviewable; application/workflow ownership remains outside SJM.

  3. moved this from Todo to In Progress in Simple Java Mail 10.0.0on Oct 16, 2026
  4. bbottema commented on Oct 16, 2026

    @bbottema
    OwnerAuthor

    The Strategic Patterns portfolio provides runnable applications for email integration:

    • Spring Boot, PostgreSQL and JobRunr for a transaction outbox.
    • Kafka and RabbitMQ for event-driven communications.
    • Temporal and Camunda for long-running workflows.
    • Spring Batch for resumable jobs.
    • Camel and S/MIME for protected correspondence and archives.
    • Spring Integration for incoming feedback and application HTTP handoff.

    The Patterns hub distinguishes these application examples from Tactical Patterns, with links to the relevant API guidance. Journal and Case Studies remain separate.

    Applications and frameworks own durable work, duplicate handling, correlation and business transitions. SMTP is not atomic with a database or broker. Partial and uncertain acceptance require an application decision; synthetic DSNs demonstrate the handoff without claiming final delivery.

    The workbench README explains how to start the local examples using Docker and Compose. Their fixtures capture mail locally and do not forward it to the Internet.

  5. changed the title [-]Demonstrate strategic email integration patterns with portable Docker demos[/-] [+]Demonstrate strategic email integration patterns with runnable Docker and AWS examples[/+] on Oct 17, 2026
  6. bbottema commented on Oct 17, 2026

    @bbottema
    OwnerAuthor

    The portfolio also includes these application examples on the unreleased 10.0.0 development branch:

    • RelayDesk: independent tenant routes, credential replacement and tenant-scoped feedback, using the canonical article helpers.
    • Polar Meridian: two dispatchers sharing application-owned claims and sending allowances, priority isolation, relay recovery, protected archives and an optional OpenTelemetry Collector.
    • CustomMailer: prepared and protected mail handed to HTTPS or RabbitMQ, with the callback owning the external delivery mapping.
    • AWS protected correspondence: local fixtures and an optional Fargate/SES deployment through Terraform or CloudFormation.

    Capability links connect the examples to the relevant SJM features. The downloadable sources include canonical helpers and deployment definitions, excluding generated credentials and deployment state.

    Applications retain persistence, scheduling, trust and business recovery. SMTP acceptance and later feedback remain separate; these examples do not promise exactly-once delivery.

    Start with the workbench README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions