-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Salesforce Streaming API #9
Comments
It's 7 years since the last commit, but there's an Erlang library that might work: https://github.com/antoniogarrote/erlfaye |
I'm not super clear how Bayeux / Cometd / Faye relate to each other.. Faye says:
so I guess any Faye library can be used - I found another one in elixir: https://github.com/messagerocket/pixie |
Faye is used in Restforce, the Ruby library I'm working with currently. It's known to only work with a specific version. I wonder why the implementation is so finicky? It looks like Pixie is still on Elixir 1.3 and could probably use some updates. I'd love to be using Elixir for this Salesforce integration project I'm working on. Elixir makes more sense than Rails to being a sort of reactive API-consumer middle-layer which is what the use case revolves around. |
@MRDoops I'm on the same boat :) I'm not using Salesforce streaming api, but even so I'm not sure I want to implement it if there is no good library I can use. My use cases do not need to create topic dynamically, so I may create topics and subscribe with other tool (e.g. java, I assume the best support for this), and use different pubsub mechanism (e.g. kafka or whatever). Another option is to write APEX class and code to call my api back, but that has different challenges of deployment, monitoring, logging, etc. |
Salesforce itself provides the server mechanisms for the CometD/Bayeux Protocol implementation. The Pixie repo implements both the server and client portions, but it's still worth referencing. For ExForce, we'd only need to implement a client that can pub/sub and handle re-connections. Good description of how Faye implements it here. This documentation from Salesforce is probably the most succinct description of the implementation requirements for a Salesforce specific CometD client. From what I can tell we'll want a persistent processes listening to channels like |
Hi, |
@fullstackpiyush no, it's not implemented. I'm not using this feature, so I don't have a plan to work on it - please feel free to take a look and create PR. Thanks! |
Introducing Streaming API
Salesforce Streaming API is based on Bayeux / ComeD. Unfortunately, I couldn't find a library to handle that :(
The text was updated successfully, but these errors were encountered: