Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
528 views
in Technique[技术] by (71.8m points)

publish subscribe - "Push" subscriptions from Redis PubSub or Streams

In a greenfield web app we have already included Redis, but do not yet have a fixed solution for PubSub style messaging. We'd like to use Redis if possible, simply to limit the number of different services we're maintaining.

We expect our usage to be quite bursty (usage is UK only, so UK business hours, and is for various kinds of business reports that need producing once per quarter, but lots of them need producing in report week), so we are considering serverless functions (AWS lambda, possibly Google Cloud Platform) for the majority of the work.

As far as I can tell, Redis PubSub and Streams require the client to connect, subscribe, and stay on the line to receive messages/events. With the serverless style, this doesn't work so well. Google Cloud Platform's PubSub has "Push" subscriptions, where an HTTPS request is sent to specified endpoints when events happen. Does such a system exist within Redis? If not, could this be achieved with Lua scripts in Redis?

question from:https://stackoverflow.com/questions/65935667/push-subscriptions-from-redis-pubsub-or-streams

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...