SlideShare a Scribd company logo
From Events to Persistence:
Leveraging Salesforce Replay Channel &
CockroachDB
Bangalore Meetup Group
Organizers
Speaker
Srita Shervani Velagada
Technical Lead
TEKSystems Global Services India
Agenda
● Introduction
● What is EDA
● Understanding Salesforce Streaming Events & Configuration
● Salesforce Connector
● Why Cockroach DB
● Setting up CockroachDB
● Integrating Salesforce replay channel & Cockroach DB in Mule
● Demo
Event Driven Architecture
Event-driven architecture enables systems to react dynamically to changes rather than
relying on direct interactions. Events represent real-world occurrences like order
placements or payments, allowing asynchronous communication between applications.
Key Benefits:
● Real-time processing: Immediate response to changes.
● Decoupling: Reduces dependencies between services.
● Scalability: Handles high event volumes efficiently.
Salesforce Streaming Events
● PushTopic
● Generic Events
● Platform Events
● CDC-Change Data Capture Events.
High Level Diagram
Cockroach DB
What is Cockroach DB & Key features
CockroachDB is a cloud-based database that stores data across multiple locations to provide quick
access. It's designed to be scalable, fault-tolerant, and highly available.
Features:
● Distributed Architecture
● Automatic Replication
● Transactional Consistency
● Self healing & Recovery
SQL Layer
Transaction Layer
Distribution Layer
Replication Layer
Storage Layer
SQL Layer
Transaction Layer
Distribution Layer
Replication Layer
Storage Layer
Node Node
Pebble KV Store
Write to a key in
key-range 2
Range 2 leader
Range 2 follower
Salesforce Connector
• Salesforce is the leading SaaS provider with its flagship CRM platform, available exclusively online.​
• It helps businesses connect to their customers in a whole new way, so they can find more prospects, close more
deals, and wow customers with amazing service.​
• Anypoint Connector for Salesforce (Salesforce Connector) enables you to create apps that react to Salesforce
events such as adding, changing, or deleting objects, topics, and channels.
Salesforce Replay Channel Listener
• This operation can be used to subscribe to salesforce channel/topic events.​
• One more advantage of using replay topic/channel listener is it can can continue from the last replay ID they
received before restarting the application.​
• Earlier versions of connector before 10.14 have only below four options for REPLAY ID at the connector level.​
• 1) ALL​
• 2) ONLY_NEW​
• 3) FROM_REPLAY_ID
• 4)FROM_LAST_REPLAY_ID
-1 : " ONLY_NEW “
• Listens only to new events generated after the subscription starts.
• Ideal for real-time streaming.
• Example Use Case:
• A live dashboard showing only new order updates from Salesforce.
• Real-time fraud detection system processing transactions as they happen.
• All the events generated within 24 or 72 hr retention period will be
consumed.
• Ideal for loading historical data.​
• Example Use Case:
To receive historical data for audit logs/analytics
-2 : “ ALL_EVENTS “
From_Replay_ID
• Resumes from a specific Replay ID that you store.
• Used for guaranteed event processing in case of failures.
• Example Use Case:
• A MuleSoft application storing the last processed Replay ID in Object Store. If the app restarts, it resumes from where it left off.
• Ensures no duplicate processing and no missed events.
From_Last_Replay_ID
• For the first time deployment connector searches for replay id in object store as it cant get any value it starts with
replay id as -2. ​
• We need to select Replay Option as FROM_LAST_REPLAY_ID and enable ObjectStoreV2 to enable autoreplay
feature.
• Example Use Case:
• A Mule application crashes and restarts. You want to process all events from the last 24 hours.
• A new subscriber needs historical data.
Key Differences
Preferred Design
Thank You

More Related Content

PPTX
Salesforce Integration Pattern Overview
PDF
Google Cloud Next '22 Recap: Serverless & Data edition
PDF
3 reasons to pick a time series platform for monitoring dev ops driven contai...
PDF
Salesforce Winter 23 Release Webinar Slide Deck
PPTX
Microservice 微服務
PPTX
SF Architect Interview questions v1.3.pptx
PPTX
apidays LIVE Jakarta - Building an Event-Driven Architecture by Harin Honesty...
PPT
informatica data replication (IDR)
Salesforce Integration Pattern Overview
Google Cloud Next '22 Recap: Serverless & Data edition
3 reasons to pick a time series platform for monitoring dev ops driven contai...
Salesforce Winter 23 Release Webinar Slide Deck
Microservice 微服務
SF Architect Interview questions v1.3.pptx
apidays LIVE Jakarta - Building an Event-Driven Architecture by Harin Honesty...
informatica data replication (IDR)

Similar to From Events to Persistence: Leveraging Salesforce Replay Channel & CockroachDB (20)

PPTX
A Vision for Transformation
PDF
Which Application Modernization Pattern Is Right For You?
PPT
Aspect UIP Logical Architecture
PPSX
M.S. Dissertation in Salesforce on Force.com
PDF
Viele Autos, noch mehr Daten: IoT-Daten-Streaming mit MQTT & Kafka (Kai Waehn...
PDF
Best Practices for Streaming IoT Data with MQTT and Apache Kafka
PPTX
Data & Analytics Forum: Moving Telcos to Real Time
PPTX
2019 hashiconf seattle_consul_ioc
PPTX
High Volume Payments using Mule
PDF
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...
PDF
5 Reasons DevOps Toolchain Needs Time-Series Based Monitoring
PPTX
PDF
IBM Blockchain Platform - Architectural Good Practices v1.0
PDF
Recruiting Application Developed on Salesforce By Vikas Gupta.pdf
DOCX
abdulrahman
PDF
Intel IT Open Cloud - What's under the Hood and How do we Drive it?
PPTX
Serena Release Management approach and solutions
PPTX
Data Stack Summit 2023
PDF
Mdop session from Microsoft partner boot camp
PPTX
Advanced Flow Concepts Every Developer Should Know
A Vision for Transformation
Which Application Modernization Pattern Is Right For You?
Aspect UIP Logical Architecture
M.S. Dissertation in Salesforce on Force.com
Viele Autos, noch mehr Daten: IoT-Daten-Streaming mit MQTT & Kafka (Kai Waehn...
Best Practices for Streaming IoT Data with MQTT and Apache Kafka
Data & Analytics Forum: Moving Telcos to Real Time
2019 hashiconf seattle_consul_ioc
High Volume Payments using Mule
VMworld 2013: Moving Enterprise Application Dev/Test to VMware’s Internal Pri...
5 Reasons DevOps Toolchain Needs Time-Series Based Monitoring
IBM Blockchain Platform - Architectural Good Practices v1.0
Recruiting Application Developed on Salesforce By Vikas Gupta.pdf
abdulrahman
Intel IT Open Cloud - What's under the Hood and How do we Drive it?
Serena Release Management approach and solutions
Data Stack Summit 2023
Mdop session from Microsoft partner boot camp
Advanced Flow Concepts Every Developer Should Know
Ad

More from shyamraj55 (20)

PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
PPTX
Curietech AI in action - Accelerate MuleSoft development
PPTX
MuleSoft for AgentForce : Topic Center and API Catalog
PPTX
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
PPTX
Leveraging AI and Agentforce for Intelligent Automation in the Salesforce & M...
PPTX
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
PPTX
Dreamforce Tour: MuleSoft Meets AI: IDP for Modern Enterprises
PPTX
Global Exception Handling Custom Error Connector In MuleSoft
PPTX
Getting started with Async API | Bangalore MuleSoft Meetup #41
PPTX
Anypoint Code Builder June Release Overview, ASync API and Einstein Features....
PPTX
Integrating Kafka with MuleSoft 4 and usecase
PPTX
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
PPTX
Anypoint Mq, Einstien for ACB and MDC loggingBangalore MuleSoft Meetup #36-.pptx
PPTX
Oauth 2.0 Introduction and Flows with MuleSoft
PPTX
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
PPTX
ServiceNow Integration with MuleSoft.pptx
PPTX
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
PPTX
How to release an Open Source Dataweave Library
PPTX
Unleash the Solace Pub Sub connector | Banaglore MuleSoft Meetup #31
PDF
Munit In Mule 4 | Patna MuleSoft Meetup #26
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
Curietech AI in action - Accelerate MuleSoft development
MuleSoft for AgentForce : Topic Center and API Catalog
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Leveraging AI and Agentforce for Intelligent Automation in the Salesforce & M...
Understanding Traditional AI with Custom Vision & MuleSoft.pptx
Dreamforce Tour: MuleSoft Meets AI: IDP for Modern Enterprises
Global Exception Handling Custom Error Connector In MuleSoft
Getting started with Async API | Bangalore MuleSoft Meetup #41
Anypoint Code Builder June Release Overview, ASync API and Einstein Features....
Integrating Kafka with MuleSoft 4 and usecase
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Anypoint Mq, Einstien for ACB and MDC loggingBangalore MuleSoft Meetup #36-.pptx
Oauth 2.0 Introduction and Flows with MuleSoft
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
ServiceNow Integration with MuleSoft.pptx
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
How to release an Open Source Dataweave Library
Unleash the Solace Pub Sub connector | Banaglore MuleSoft Meetup #31
Munit In Mule 4 | Patna MuleSoft Meetup #26
Ad

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Empathic Computing: Creating Shared Understanding
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Spectroscopy.pptx food analysis technology
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Machine Learning_overview_presentation.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Machine learning based COVID-19 study performance prediction
Empathic Computing: Creating Shared Understanding
Assigned Numbers - 2025 - Bluetooth® Document
Spectroscopy.pptx food analysis technology
Heart disease approach using modified random forest and particle swarm optimi...
Getting Started with Data Integration: FME Form 101
Group 1 Presentation -Planning and Decision Making .pptx
Advanced methodologies resolving dimensionality complications for autism neur...
TLE Review Electricity (Electricity).pptx
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25-Week II
SOPHOS-XG Firewall Administrator PPT.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Tartificialntelligence_presentation.pptx
Machine Learning_overview_presentation.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

From Events to Persistence: Leveraging Salesforce Replay Channel & CockroachDB

  • 1. From Events to Persistence: Leveraging Salesforce Replay Channel & CockroachDB Bangalore Meetup Group
  • 3. Speaker Srita Shervani Velagada Technical Lead TEKSystems Global Services India
  • 4. Agenda ● Introduction ● What is EDA ● Understanding Salesforce Streaming Events & Configuration ● Salesforce Connector ● Why Cockroach DB ● Setting up CockroachDB ● Integrating Salesforce replay channel & Cockroach DB in Mule ● Demo
  • 5. Event Driven Architecture Event-driven architecture enables systems to react dynamically to changes rather than relying on direct interactions. Events represent real-world occurrences like order placements or payments, allowing asynchronous communication between applications. Key Benefits: ● Real-time processing: Immediate response to changes. ● Decoupling: Reduces dependencies between services. ● Scalability: Handles high event volumes efficiently.
  • 6. Salesforce Streaming Events ● PushTopic ● Generic Events ● Platform Events ● CDC-Change Data Capture Events.
  • 8. Cockroach DB What is Cockroach DB & Key features CockroachDB is a cloud-based database that stores data across multiple locations to provide quick access. It's designed to be scalable, fault-tolerant, and highly available. Features: ● Distributed Architecture ● Automatic Replication ● Transactional Consistency ● Self healing & Recovery
  • 9. SQL Layer Transaction Layer Distribution Layer Replication Layer Storage Layer SQL Layer Transaction Layer Distribution Layer Replication Layer Storage Layer Node Node Pebble KV Store Write to a key in key-range 2 Range 2 leader Range 2 follower
  • 10. Salesforce Connector • Salesforce is the leading SaaS provider with its flagship CRM platform, available exclusively online.​ • It helps businesses connect to their customers in a whole new way, so they can find more prospects, close more deals, and wow customers with amazing service.​ • Anypoint Connector for Salesforce (Salesforce Connector) enables you to create apps that react to Salesforce events such as adding, changing, or deleting objects, topics, and channels.
  • 11. Salesforce Replay Channel Listener • This operation can be used to subscribe to salesforce channel/topic events.​ • One more advantage of using replay topic/channel listener is it can can continue from the last replay ID they received before restarting the application.​ • Earlier versions of connector before 10.14 have only below four options for REPLAY ID at the connector level.​ • 1) ALL​ • 2) ONLY_NEW​ • 3) FROM_REPLAY_ID • 4)FROM_LAST_REPLAY_ID
  • 12. -1 : " ONLY_NEW “ • Listens only to new events generated after the subscription starts. • Ideal for real-time streaming. • Example Use Case: • A live dashboard showing only new order updates from Salesforce. • Real-time fraud detection system processing transactions as they happen. • All the events generated within 24 or 72 hr retention period will be consumed. • Ideal for loading historical data.​ • Example Use Case: To receive historical data for audit logs/analytics -2 : “ ALL_EVENTS “
  • 13. From_Replay_ID • Resumes from a specific Replay ID that you store. • Used for guaranteed event processing in case of failures. • Example Use Case: • A MuleSoft application storing the last processed Replay ID in Object Store. If the app restarts, it resumes from where it left off. • Ensures no duplicate processing and no missed events. From_Last_Replay_ID • For the first time deployment connector searches for replay id in object store as it cant get any value it starts with replay id as -2. ​ • We need to select Replay Option as FROM_LAST_REPLAY_ID and enable ObjectStoreV2 to enable autoreplay feature. • Example Use Case: • A Mule application crashes and restarts. You want to process all events from the last 24 hours. • A new subscriber needs historical data.