Pub/Sub Overview
KakaoCloud's Pub/Sub is a non-installation message queue service for large-volume events and data analysis. Pub/Sub uses an asynchronous communication pattern between "publishers" that generate and publish information and "subscribers" that receive and process information.
Publishers communicate asynchronously with subscribers by broadcasting events, not RPCs. In this asynchronous communication pattern, the publisher does not explicitly identify the subscribers that receive the information, but instead publishes the information to a specific topic. The subscribers can subscribe to the topic and receive and process the published information.
- Pub/Sub: An abbreviation for "Publish/Subscribe", it is a service that efficiently distributes and processes information using a message pattern based on publishing and subscribing to data.
- RPC (Remote Procedure Call): Also known as "synchronous remote procedure call", it is a message communication pattern that communicates through direct calls between clients and servers. Unlike Pub/Sub, it is a synchronous communication pattern in which the client calls a specific procedure or function on the server and waits for the result.
- Message Queue: Also known as a message queue, it is an asynchronous service-to-service communication form used in serverless and microservice architectures. Messages are stored in a queue and processed, and each message is processed only once by a subscriber. Message queues can be used to decouple large-scale processing tasks, perform buffering or batch tasks, and smoothly support rapidly changing workloads.
Purpose and use cases
If message queues are not used, large-scale data processing and message transmission must be implemented manually, which increases complexity and takes a lot of time to implement. Communication between applications is also synchronous, so the response time of an application increases when one application waits for a response from another application. This direct communication between applications increases the coupling between applications, making it difficult to change and expand.
KakaoCloud's Pub/Sub can improve data management efficiency by asynchronously processing communication between applications/services when a large amount of message data is retrieved or a webhook is required.
Features
You can efficiently manage large-scale messages using the Pub/Sub.
Task parallel processing
- Supports efficient work on many tasks such as event analysis and processing between multiple users
Efficient message management
- Automatically requests unconfirmed messages again according to specified policies such as retry policy, retention period, and point-in-time rollback, and can store messages of specific topics and roll back points-in-time as needed
Push delivery
- Pushes an asynchronous event notification immediately when a message is published to a message topic, and sends a notification to subscribers when the message becomes available
Security
- Message topics authenticate the application that wants to publish content, and protect messages being transmitted over the network using encrypted endpoints
Getting started
For detailed usage guides on IAM, please refer to How-to Guides document. If you are new to KakaoCloud, start with the Start section.