Skip to content

Commit

Permalink
Update Sailor version 2.6.24 (#10)
Browse files Browse the repository at this point in the history
* Update Sailor version 2.6.24 

* Some minor non-functional updates
  • Loading branch information
stas-fomenko authored Mar 24, 2021
1 parent a0d321c commit e595cf3
Show file tree
Hide file tree
Showing 5 changed files with 4,942 additions and 52 deletions.
20 changes: 12 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
# 1.7.2 (March 25, 2021)

* Update Sailor version to 2.6.24

# 1.7.1 (December 18, 2020)

* Update Sailor version to 2.6.21
* Annual audit of the component code to check if it exposes a sensitive data in the logs
* Annual npm vulnerabilities audit

## 1.7.0 (May 22, 2020)
# 1.7.0 (May 22, 2020)

* Update Sailor version to 2.6.7
* Migrate to the latest @google-cloud/pubsub library
* Fix code style

## 1.6.0 (October 12, 2018)
# 1.6.0 (October 12, 2018)

* Fixed nodejs version

## 1.5.0 (June 15, 2017)
# 1.5.0 (June 15, 2017)

* Update Sailor version to 2.1.6
* Update google-pubsub library

## 1.4.0 (April 21, 2017)
# 1.4.0 (April 21, 2017)

* Update Sailor version to 2.1.0
* Update google-pubsub library

## 1.3.0 (February 21, 2017)
# 1.3.0 (February 21, 2017)

* Update google-pubsub library

## 1.2.0 (October 11, 2016)
# 1.2.0 (October 11, 2016)

* Add Subscribe trigger

## 1.1.0 (October 7, 2016)
# 1.1.0 (October 7, 2016)

* Update Sailor version to 1.3.0

## 1.0.0 (September 30, 2016)
# 1.0.0 (September 30, 2016)

* Initial version
40 changes: 29 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,37 @@
[![CircleCI](https://circleci.com/gh/elasticio/google-pubsub.svg?style=svg)](https://circleci.com/gh/elasticio/google-pubsub)

# Google PubSub
## Description
# Google PubSub

## Table of Contents

* [General information](#general-information)
* [Description](#description)
* [Requirements](#requirements)
* [Core concepts](#core-concepts)
* [Credentials](#credentials)
* [Triggers](#triggers)
* [Subscribe](#subscribe)
* [Actions](#actions)
* [Publish](#publish)
* [Additional info](#additional-info)
* [License](#license)

## General information

### Description

The component interacts with Google Pub-Sub API. The API is an asynchronous messaging service that decouples services that produce events from services that process events.

Pub/Sub offers durable message storage and real-time message delivery with high availability and consistent performance at scale. Pub/Sub servers run in all Google Cloud regions around the world.

### Core concepts
### Requirements
#### Core concepts
- **Topic:** A named resource to which messages are sent by publishers.
- **Subscription:** A named resource representing the stream of messages from a single, specific topic, to be delivered to the subscribing application. For more details about subscriptions and message delivery semantics, see the [Subscriber Guide](https://cloud.google.com/pubsub/subscriber).
- **Message:** The combination of data and (optional) attributes that a publisher sends to a topic and is eventually delivered to subscribers.
- **Message attribute:** A key-value pair that a publisher can define for a message. For example, key `iana.org/language_tag` and value `en` could be added to messages to mark them as readable by an English-speaking subscriber.

## How authentication works
## Credentials

PubSub component authentication works with
[Google IAM Service Accounts](https://developers.google.com/identity/protocols/OAuth2ServiceAccount)
Expand All @@ -26,25 +44,25 @@ need to create a new Service Account on [Service Accounts Page](https://console.

## Triggers

## Pull
### Subscribe

The Pull trigger receives a message from a Topic, emits it, and sends an acknowledgment to Pub/Sub.
The Subscribe trigger receives a message from a Topic, emits it, and sends an acknowledgment to Pub/Sub.

### Configuration
#### Configuration

- Topic Name - (required field) fully-qualified topic resource name string, e.g. `projects/<project_id>/topics/<topic_name>`
- `Topic Name` - (required field) fully-qualified topic resource name string, e.g. `projects/<project_id>/topics/<topic_name>`

## Actions

### Publish

The Publish action retrieves message body from a previous step and sends a message to a Topic while remaining unaware of any existing subscriptions.

### Configuration
#### Configuration

- Topic Name - (required field) fully-qualified topic resource name string, e.g. `projects/<project_id>/topics/<topic_name>`
- `Topic Name` - (required field) fully-qualified topic resource name string, e.g. `projects/<project_id>/topics/<topic_name>`

## Warning
## Additional info

Please take a special care of the indepmotency of your processing flow, here is the extract from [PubSub Subscriber Guide](https://cloud.google.com/pubsub/docs/subscriber)

Expand Down
2 changes: 2 additions & 0 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"actions": {
"pub": {
"title": "Publish",
"note":"The Publish action retrieves message body from a previous step and sends a message to a Topic while remaining unaware of any existing subscriptions.",
"main": "./lib/actions/pub.js",
"fields": {
"topicName": {
Expand All @@ -54,6 +55,7 @@
"triggers": {
"subscribe": {
"title": "Subscribe",
"note":"The Subscribe trigger receives a message from a Topic, emits it, and sends an acknowledgment to Pub/Sub.",
"main": "./lib/triggers/pull.js",
"type": "polling",
"fields": {
Expand Down
Loading

0 comments on commit e595cf3

Please sign in to comment.