In this session we talk about how to Integrating with Salesforce using Platform Events and when to use platform events on Salesforce platform. Before getting started let understand the point to point integration challenges for Salesforce Integration.
Point to Point Integration Challenges
Here are few challenges of point to point integrations.
- Scalability: Inclusion and removal of entities to the communication is time consuming.
- Tight Coupling: Dependency on every integration point makes it maintenance heavy.
- Non Ubiquitous Communication: Inconsistent & disparate data exchanges formats.
Event Driven Architecture
Let see how we can resolve the issue of point to point integration. Yes we can use the Event Driven Architecture. We can use platform event in Salesforce for event driven solution.
Understanding Platform Events
- Sobject like Salesforce Entity
- Suffixed with __e
- ReplayID for replaying specific event
- Pub/Sub based communication
- No polling required
- Heterogeneous payloads
- Define events with different payloads
Learn more about platform event in Salesforce.
Integrating with Salesforce using Platform Events Video
In this session we will use shipping app use case for demo. Here is use case where we are using Order management application to integrate with Shipping application. Once the order is submitted then we are passing details to shipping app and tracking the shipping status in Salesforce. Check out our Video for application demo.
Agenda of session
- Point to Point Integration Challenges
- Solution – Event Driven Architecture
- Understanding Platform Events
- Publishing & Subscribing to Platform Events
- Demo
- Q & A
Here is PPT of Session.
Please Subscribe to the channel to get notification for upcoming recording.
If you are new in Salesforce. Please check our free Salesforce Admin and Salesforce Developer training.
Summary
I hope session on Integrating with Salesforce using Platform Events helped your to understand the basic of platform event. Please check our other session Overcome Salesforce Governor Limits Using Platform Events where we cover other use cases of platform event.
As platform event is similar to object and publish event has payload same as field api name and value like
{
“OrderNumber”:”101″,
“Status”:”Shipped”
}
But what if we want to send Order with Order Product where order product would be multiple payload would be
{ “OrderNumber”:”101″,
“Status”:”Shipped”
“OrderProduct”:[
{
“OrderProduct”:”P101″
}.
{
“OrderProduct”:”P102″
}
]
}
And what is limit of data that we can publish in case above scenario.
Hi Amit,
I saw this session and its really help me to learn Platform Event.
I have a question is “How the external system knows the event which want to subscribe is already published or not?”