• Stars
    star
    105
  • Rank 328,125 (Top 7 %)
  • Language
    Java
  • License
    Creative Commons ...
  • Created over 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample project to get started with the Pub/Sub API

Getting Started with the Pub/Sub API

About Pub/Sub API

Welcome to Pub/Sub API! Pub/Sub API provides a single interface for publishing and subscribing to platform events, including real-time event monitoring events, and change data capture events. Based on gRPC and HTTP/2, Pub/Sub API enables efficient delivery of binary event messages in the Apache Avro format.

This repo contains the critical proto file that you will need to use the API.

gRPC

gRPC officially supports 11 languages, but there is unofficial community support in more. To encode and decode events, an Avro library for your language of choice will be needed. See below for which officially supported languages have well-supported Avro libraries:

Supported gRPC Language Avro Libraries
C# AvroConvert
Apache Avro C# (docs are not great)
C++ Apache Avro C++
Dart avro-dart (last updated 2012)
Go goavro
Java Apache Avro Java
Kotlin avro4k
Node avro-js
Objective C ObjectiveAvro (but read this)
PHP avro-php
Python Apache Avro Python
Ruby AvroTurf

Documentation, Blog Post and Videos

Code Samples from Salesforce

Salesforce provides these samples for demonstration purposes. They aren't meant to be used in production code. Before you use these samples in production, make sure you perform thorough functional and performance testing.

Code Samples from the Developer Community

These examples are developed by the community. They aren't supported by Salesforce. Use at your own discretion.

If you have a code sample for Pub/Sub API that you would like to add a link to in this section, submit a PR with the modified readme page. We don't guarantee that we can link to all samples. Priority will be given to samples implemented in a programming language that is not represented in this repository's samples.

More Repositories

1

Force.com-JavaScript-REST-Toolkit

ForceTK - a minimal Force.com REST API for JavaScript apps
JavaScript
315
star
2

Force.com-Toolkit-for-PHP

HTML
262
star
3

LEXComponentsBundle

JavaScript
106
star
4

Mobile-Design-Templates

Repo for hosting the Mobile Design Templates
JavaScript
97
star
5

open-cti-demo-adapter

JavaScript
91
star
6

LightningContainerExamples

JavaScript
67
star
7

Force.com-Toolkit-for-Ruby

Ruby
59
star
8

DataWeaveInApex

Examples for working with DataWeave scripts from Apex.
Apex
59
star
9

Force.com-Toolkit-for-Facebook

A collection of Apex classes and Visualforce pages for working with the Facebook social graph
Apex
50
star
10

SalesforceDurableStreamingDemo

Salesforce Durable Streaming Demo
Apex
41
star
11

salesforce-slack-starter-kit

Salesforce Slack Starter Kit - a minimal opinionated scaffold for building Slack Apps Integrated to Salesforce
JavaScript
39
star
12

pubsub

The c/pubsub cross DOM messaging component
JavaScript
33
star
13

LightningNowWorkshop

Workshop Content for Sales Admin Lightning Now Tour Workshop
HTML
30
star
14

troubleshoot-lwc

Base Lightning Web Components Trailhead Troubleshooting Lightning Web Components
CSS
29
star
15

elf_elk_docker

Docker image for running Salesforce Event Log File on ELK stack
Shell
25
star
16

df15-devzone-presentations

Presentations from Dreamforce 2015
24
star
17

Jetstream

streaming proxy for salesforce streaming api
Java
17
star
18

lightning-inspector-doc

Documentation for the Lightning Component Inspector, a Chrome DevTools Extension
16
star
19

MobilePack-jQueryMobile

Contains everything related to jQueryMobile MobilePack
15
star
20

pdf-generator

This project helps you generate a PDF from a Custom Compensation Object in Salesforce using Slack, Salesforce and Salesforce Functions.
JavaScript
15
star
21

lightning-out

Docs and samples for Lightning Out
JavaScript
14
star
22

reactive-salesforce-rest-angular-crud

Java
14
star
23

Force.com-Toolkit-For-Windows-Azure

C#
14
star
24

Visualforce-Charting-Examples

A few examples of all of the Visualforce Charting types as of Winter '13
Apex
14
star
25

visual-studio-tools

Microsoft Visual Studio tooling for salesforce.com
C#
13
star
26

StreamingReplayClientExtensions

Java
13
star
27

GIFter

Sample app for the Trailhead project "Quick Start: Unlocked Packages"
JavaScript
13
star
28

ExchangeRates

Apex
12
star
29

lightning-components-tutorial

Lightning Component Tutorial
HTML
11
star
30

Common-Libraries-for-NET

The Common Libraries for .NET provides functionality used by the Force.com Toolkit for .NET and the Chatter Toolkit for .NET.
C#
11
star
31

TH_CloudPages_PrefCenter

Sample HTML files for a custom preference center in Marketing Cloud.
HTML
10
star
32

MetadataDrivenTriggerHandler

Apex
10
star
33

spring-mvc-fulfillment-base

Java
9
star
34

Site.com-Quick-Start

Site.com export file to support the Site.com Quick Start
9
star
35

Force.com-Toolkit-for-Jasper

The Force.com Toolkit for Jasper is an Apex client library for the Jasper Control Center API
Apex
9
star
36

emote-server

Backend for https://github.com/fostive/emote-widget
JavaScript
9
star
37

salesforce-dx-pipeline-sample

Sample app for the hands-on bootcamp "Developing Applications with Salesforce DX and Heroku Pipelines"
Shell
9
star
38

Chatter-Toolkit-for-NET

The Chatter Toolkit for .NET provides an easy way for .NET developers to interact with the Chatter REST API using a native libraries.
C#
9
star
39

account-merge

Update accounts in a target org with data from a source org. The application uses Salesforce Functions and the pg_trgm module in Postgres to find duplicated records.
Apex
9
star
40

lightning-connect-tutorial

8
star
41

emote-widget

A widget allowing attendees to share emotion with others in real-time during a virtual event. Build with Lightning Web Components https://lwc.dev
SCSS
8
star
42

vfanalyzer

A node.js application to query Visualforce markup and related JS files for potential LEX conflicts
CSS
8
star
43

lwc-rfc-template

RFC template to design and plan LWCs
7
star
44

salesforce-slack-starter-kit-s2s

JavaScript
7
star
45

github-custom-adapter

Apex
6
star
46

PermSetUnlockedPackage

Sample repo designed for Trailhead module "Package Permission Sets Using Salesforce DX"
6
star
47

reactive-salesforce-rest-javascript-seed

Java
5
star
48

lightning-process-builder-tutorial

5
star
49

SalesforceDurablePushTopicDemo

This repository contains all the code you need to set up a Durable PushTopic Streaming client inside of a Visualforce page in your Salesforce org.
Apex
5
star
50

partner-intelligence-basics

Apex
5
star
51

MobilePack-KnockoutJS

Contains everything related to KnockoutJS MobilePack release
C
4
star
52

salesforce-canvas-seed

HTML
4
star
53

ltngx-http

A sample HTTP proxy component and JS API.
JavaScript
4
star
54

gif-booth

Add animated GIFs and Family Photo to your virtual events
JavaScript
3
star
55

Mini-hacks

Apex
3
star
56

ForcedotShell

Simple iOS WebShell app which allows you to set salesforce details via the settings app. This is really intended for demo launching rather than full-blown apps which should use OAuth for login.
Objective-C
3
star
57

SecureDevWebinar-sample

2
star
58

developerforce-Chatter-QuickPost-Firefox-Plugin

JavaScript
2
star
59

heroku-connect-status

Scala
2
star
60

use-apex-to-automate-business-processes

Trailhead Badge: Use Apex to Automate Business Processes
1
star
61

SalesforceDurableGenericDemo

Apex
1
star
62

tdx23-lwc-hack

LWC Hack for TDX23
HTML
1
star
63

soql-fields

1
star
64

demo-df13-devkeynote-s1app

Code from the DF13 Developer Keynote Salesforce1 Demo
Shell
1
star