Git Product home page Git Product logo

cdgeventapp's Introduction

Platform Events v API Demo (Salesforce Side)

This app was built to explore the idea of loosely coupled event architectures that were not possible in Salesforce until Platform Events was a thing.

There are a lot of integration patterns in Salesforce that have tried to make up for the lack of a messaging queue on the platform: outbound messaging, callouts from apex, streaming api, polling from external services, and extremely well trained homing pigeons from Switzerland. However, each of these patterns lacks the simplicity and scalability of a message queue (esp. those dirty pigeons).

With events, developers can publish an event and walk away. If there are other systems that need to act on this action, they can subscribe to it and write whatever logic in whatever system they need to get their work done. This type of pattern is particularly useful when an application and separate systems that need to connect to it start to scale.

Build the project

We used SFDX for development. We don't have instructions for anything else.

  1. Clone this repo to your local computer git clone https://github.com/pete-sfdc/CDGEventApp.git
  2. Spin up a scratch org sfdx force:org:create -f project-scratch-def.json
  3. Deploy the zip in /mdapi sfdx force:mdapi:deploy
  4. Push the source to your new scratch org sfdx force:source:push
  5. Generate a password for the scratch org user sfdx force:user:password:generate
  6. Grab username and password of user on scratch org sfdx force:user:display
  7. Generate a security token for the default user (done through the Salesforce UI)
  8. Create a connected app in Salesforce. Enable OAuth, callback url http://localhost:3000/oauth/_callback, ClientID = Consumer Key
  9. Setup external service on Heroku. The source and build instructions for the NodeJS side can be found here.

Resources

cdgeventapp's People

Contributors

pete-sfdc avatar iiretepii avatar

Watchers

James Cloos avatar

Forkers

cowie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.