You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> CLI invocation can also be async by passing the `-a` flag to the `invoke` call
29
29
30
-
###Other Event Sources
30
+
## Other Event Sources
31
31
32
-
####Event-connector pattern
32
+
### Event-connector pattern
33
33
34
34
The OpenFaaS connector-pattern allows you to create a broker or separate microservice which maps functions to topics and invokes functions via the OpenFaaS Gateway meaning that the OpenFaaS code does not need to be modified per trigger/event-source.
35
35
36
36

37
37
38
-
#####Add your own event source
38
+
#### Add your own event source
39
39
40
40
If you'd like to add an event source which is not listed below you can fork the OpenFaaS event [connector SDK](https://github.com/openfaas-incubator/connector-sdk) which is written in Go and use this to connect your pub/sub topics or message queues to functions in OpenFaaS.
41
41
42
-
####Apache Kafka
42
+
### Apache Kafka
43
43
44
44
Connect your function(s) to [Apache Kafka](https://kafka.apache.org) topics.
45
45
46
46
More information in the Incubator repository: [openfaas-incubator/kafka-connector](https://github.com/openfaas-incubator/kafka-connector)
47
47
48
48
Support is available for OpenFaaS Gateways using Basic Authentication.
49
49
50
-
####AWS SNS
50
+
### AWS SNS
51
51
52
52
You can use AWS SNS to trigger functions using AWS SNS Notifications and Subscriptions. This approach can be used to export almost any data-source or event from your Amazon Web Services (AWS) console such as S3 of DynamoDB to an OpenFaaS function.
53
53
54
54
Find more information in the following repository: [affix/OpenFaaS-SNS](https://github.com/affix/OpenFaaS-SNS)
55
55
56
-
####Minio / S3
56
+
### Minio / S3
57
57
58
58
You can trigger OpenFaaS functions using Minio's webhook or Kafka integration.
You can trigger OpenFaaS functions using webhooks sent via the (if this, then that) service.
65
+
[CloudEvents](https://cloudevents.io/) is a specification for describing event data in a common way.
66
66
67
-
An example may be triggering a function which forwards Tweets about your brand or project to a given Slack channel. For this combination use the "Twitter search" Applet and have it trigger the "Make a web request" Applet giving the public URL of your OpenFaaS gateway and the receiver function such as https://gw.my-company.com/function/slack-forwarder
67
+
Follow this example to learn how to trigger functions using the Azure EventGrid and CloudEvents.
68
68
69
-
See an example of a function built to forward Tweets from IFTTTT to Slack using Golang: [filter-tweets](https://github.com/openfaas-incubator/social-functions/blob/master/filter-tweets/handler.go).
69
+
More information in the repository: [johnmccabe/cloudevents-slack-demo](https://github.com/johnmccabe/cloudevents-slack-demo)
70
70
71
-
Visit [ifttt.com](https://ifttt.com) to learn more.
71
+
### IFTTT
72
72
73
-
#### CloudEvents
73
+
You can trigger OpenFaaS functions using webhooks sent via the (if this, then that) service.
74
74
75
-
[CloudEvents](https://cloudevents.io/) is a specification for describing event data in a common way.
75
+
An example may be triggering a function which forwards Tweets about your brand or project to a given Slack channel. For this combination use the "Twitter search" Applet and have it trigger the "Make a web request" Applet giving the public URL of your OpenFaaS gateway and the receiver function such as https://gw.my-company.com/function/slack-forwarder
76
76
77
-
Follow this example to learn how to trigger functions using the Azure EventGrid and CloudEvents.
77
+
See an example of a function built to forward Tweets from IFTTTT to Slack using Golang: [filter-tweets](https://github.com/openfaas-incubator/social-functions/blob/master/filter-tweets/handler.go).
78
78
79
-
More information in the repository: [johnmccabe/cloudevents-slack-demo](https://github.com/johnmccabe/cloudevents-slack-demo)
79
+
Visit [ifttt.com](https://ifttt.com) to learn more.
80
80
81
-
####Redis (third-party project)
81
+
### Redis (third-party project)
82
82
83
83
Invoke functions using Redis pub/sub and the [Sidekiq model](https://sidekiq.org).
84
84
85
85
View the [sidekiq-connector](https://github.com/affix/sidekiq-connector)
86
86
87
87
> Note: the Redis connector currently has no support for gateways using Basic Authentication, but [this is being worked on](https://github.com/affix/sidekiq-connector/issues/1) by the author.
0 commit comments