How x4b1/messenger works
Main Components
a. Message Storage Layer
• Two implementations: PGX and StdSQL (shown as sub-components)
• This to the core messenger component
b. Message Brokers Layer
• AWS SNS
• AWS SQS (with both publisher and subscriber capabilities)
c. Core Components
• Messenger (central component)
• Message Handler
• Subscription Manager
• Store Transformer
• Broker Multiplexer
Component Relationships
• Application → Messenger → PostgreSQL Store (Message Storage)
• Inspector → PostgreSQL Store (Message Retrieval)
• Messenger → Broker Multiplexer → Individual Brokers (SNS/SQS)
Specific Implementation Details
Architectural elements:
• Separation between storage interfaces and implementations
• Broker abstraction layer
• Outbox pattern implementation
• Metadata handling components
Important Notes
a. Key aspects:
• The separation between message storage and publication
• The pluggable nature of different storage and broker implementations
• The transaction boundary around message storage
• Component types
• Implementation variants