Building Event-Driven Architectures: Top 5 Best Practices
Sep 19, 2023Ahmed Saef Zamzam

Summary
This post introduces two patterns for integrating Confluent Cloud with AWS Lambda to build event-driven applications: the fully managed AWS Lambda Sink Connector and native event source mapping (ESM). It details the benefits and considerations of each pattern, including throughput, latency, scaling, and error handling. Additionally, it provides five best practices for building event-driven architectures with Confluent and Lambda: batching calls to Lambda, implementing robust error handling in Lambda code to avoid duplicates and stalled partitions, using Lambda functions idempotently, and keeping long-lived connections to Kafka outside the handler for better efficiency.
More from the Real-time Enterprise RAG trail
- Building an Agentic SOC on a Stream
- Hemut: Building the Internet of Freight on Real-Time Data
- New in Confluent Intelligence and AI Tools: Making Agents Native to the Stream, Expanded Model Support, New Agent Skills, and Copilot
- Customer Intelligence Hub for Real-Time GTM Insights
- RAG and GenAI for Customer 360 Architecture