Pub/Sub API (gRPC based) in Salesforce | Part 1 of 2 (Theory)

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 13

  • @samCoder
    @samCoder  Рік тому +1

    Here are some documents that you could refer
    -developer.salesforce.com/blogs/2021/07/pub-sub-api-building-event-driven-integrations-just-got-even-easier
    -medium.com/salesforce-architects/announcing-pub-sub-api-generally-available-3980c9eaf0b7
    -tech-lead.medium.com/grpc-vs-restful-api-vs-graphql-web-socket-tcp-sockets-and-udp-beyond-client-server-43338eb02e37
    -developer.salesforce.com/docs/platform/pub-sub-api/guide/intro.html

  • @scottf9374
    @scottf9374 Рік тому

    Is it possible for a SF to SF connection?

    • @shaunmcarthur3616
      @shaunmcarthur3616 Рік тому

      It sounds like it - the runtime is external to your org, if I understand correctly.

    • @samCoder
      @samCoder  Рік тому +1

      Hi Scott, it's not possible currently to the best of my knowledge.

    • @scottf9374
      @scottf9374 Рік тому

      @@samCoder Thank you for your answer.

  • @NOURAOULMOUDEN
    @NOURAOULMOUDEN Місяць тому

    hello, is there way to access stored events (24 or 72 h) without subscription to event ? is there a way to access them internally from salesforce or externally from other systems ? thank u

  • @shaunmcarthur3616
    @shaunmcarthur3616 Рік тому

    I assume I can talk to separate lightning components on the same experience page? Is that accurate?

    • @samCoder
      @samCoder  Рік тому

      Hey Shaun, With PubSub API external applications can subscribe to events published by Salesforce Or external applications can publish an event which salesforce can consume. This can be done to make data consistency between external systems. But the scenerio you are talking about that separate lightning components on the same experience page can be acheived using Salesforce Lightning Messaging service and doesn't require pubSub API

    • @shaunmcarthur3616
      @shaunmcarthur3616 Рік тому

      @@samCoder Thanks for the reply. We've been using a small LWC for pubsub that is clean and easy to work with. I was hoping we might be able to consolidate cometD stuff + pubsub lwc using this new feature.
      Is it really intended for SF 3rd parties primarily? I noted your response to Scott F and was surprised that we couldn't (say) go from SF1 -> Mulesoft -> 3rd Party -> SF2 ? Maybe I misunderstood. Cheers.

    • @samCoder
      @samCoder  Рік тому

      @@shaunmcarthur3616 Yes Shaun. If there is an intermediary we can have a connection between two orgs. But Scott’s question was about direct SF to SF connection using PubSub Api or cometd.
      Here’s an article for reference
      salesforce.stackexchange.com/questions/208915/publish-and-or-subscribe-to-platform-events-between-separate-orgs

  • @Nick-o2s5h
    @Nick-o2s5h Рік тому

    Hello Samarth Sir, can we take backup of Platform Event message(Records) via any API or by code

    • @samCoder
      @samCoder  Рік тому

      In Salesforce yes. You can create a after insert trigger on the Platform event and then save it a custom object for logging.

    • @Nick-o2s5h
      @Nick-o2s5h Рік тому

      @@samCoder Thank you so much sir for the reply