Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Googlecloud's pub/sub, socket, ipc, etc [closed]

I'm using node.js server and GCloud. What is exactly the GCloud's pub/sub? Does it work like socket or tcp? My server is using socket.io and node-ipc for communicating, can GCloud's pub/sub be the alternative?

like image 233
Oza Avatar asked Apr 04 '18 04:04

Oza


People also ask

What is the core difference between cloud pub/sub and cloud tasks?

Key Differences The core difference between Pub/Sub and Cloud Tasks is in the notion of implicit vs. explicit invocation. Pub/Sub aims to decouple publishers of events and subscribers to those events.

What is pub and sub in GCP?

Google Cloud Pub/Sub provides messaging between applications. Cloud Pub/Sub is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a "topic" and other applications can subscribe to that topic to receive the messages.

What is the use of Google Pub/Sub service?

Pub/Sub is used for streaming analytics and data integration pipelines to ingest and distribute data.

Is GCP Pub/Sub Kafka?

In general, both are very solid Stream processing systems. The point which make the huge difference is that Pubsub is a cloud service attached to GCP whereas Apache Kafka can be used in both Cloud and On-prem.


1 Answers

PubSub is a messaging service. These allow asynchronous communication between two applications; one "publishes a message" to a message service and then some other process reads that message from the message service at a later time - seconds, minutes, or hours later. The application that published the message does not need to "stay connected".

That's really useful for scalable and reliable communication between applications - but quite different from socket-based communication which is point-to-point between a client and server process. Implementing request/response type communications is difficult over a messaging service - "send and forget" is the usual model. As @komarkovich noted, a message can also be received by many applications if that is appropriate.

like image 143
Simon Kitching Avatar answered Sep 19 '22 12:09

Simon Kitching