bg_image
header

AWS Lambda

AWS Lambda is a "serverless" service provided by Amazon Web Services (AWS) that allows developers to execute code without managing or provisioning servers. With Lambda, developers can write functions and upload them to run in the cloud on an as-needed basis without managing infrastructure.

It operates based on "event triggers" that initiate the code, such as uploading a file to an Amazon S3 bucket or receiving a message in an Amazon Simple Queue Service (SQS) queue. Lambda scales automatically to meet the code's demands, and developers only pay for the actual compute power used, as billing is based on the number of function invocations and their duration.

 


Publish-Subscribe-Pattern - PubSub

The Publish/Subscribe pattern (often abbreviated as Pub/Sub) is a communication pattern in software development that enables loose coupling between components or systems. It involves two main actors: the Publisher and the Subscriber.

  • Publisher: Responsible for generating and publishing messages or events. A Publisher sends messages to a central location, the Message Broker or Pub/Sub system.

  • Subscriber: Registers for specific types of messages or topics it wants to react to. A Subscriber receives messages published by the Publisher and forwarded by the Message Broker to the respective subscribers.

The key concept in the Pub/Sub pattern is that the Publisher doesn't send messages directly to specific recipients but rather to a central intermediary system. This system stores messages and then distributes them to all Subscribers interested in the corresponding topic or type of message.

The pattern enables decoupled, scalable, and flexible communication between different parts of an application or between different applications. It's used in various systems and technologies, including messaging brokers, cloud platforms, IoT (Internet of Things), real-time analytics, and other scenarios requiring flexible message delivery.

 


Google Cloud PubSub

Google Cloud Pub/Sub is a managed messaging service provided by Google, based on the Publish/Subscribe model. It enables scalable and reliable message delivery between applications and systems in real-time.

Cloud Pub/Sub serves as a central intermediary for message delivery between different components within cloud infrastructure or across various applications. It facilitates Publish/Subscribe communication, where Publishers send messages to specific topics, and Subscribers subscribe to these topics to receive messages.

Some key features of Google Cloud Pub/Sub include:

  1. Scalability: It can handle messages in large volumes and is designed for high throughput rates.

  2. Reliability: It ensures message delivery with low latency and offers persistence to prevent message loss.

  3. Real-time processing: Facilitates real-time message transmission between applications or systems.

  4. Integration: Seamlessly integrates with other Google Cloud services and can connect to external systems.

Cloud Pub/Sub is commonly used in cloud-based applications, data processing pipelines, real-time analytics, IoT (Internet of Things), and other scenarios requiring reliable and scalable message delivery.

 


Subscriber

A Subscriber, in the context of a message broker or messaging system, is an entity or component that receives messages and acts upon them. While the Publisher generates messages and sends them to the message broker, the Subscriber is a part of the system that has subscribed to receive specific types of messages forwarded by the message broker.

Subscribers are recipients of messages who subscribe to particular channels, topics, or types of messages that are relevant to them. Once the message broker receives messages that match the subscription criteria of the Subscribers, it forwards those messages to the corresponding Subscribers, who can then process or respond to them.

For instance, in a messaging system, a Subscriber could be an application waiting for specific types of notifications. Once the message broker receives messages that meet those criteria, it forwards them to the respective application, which then processes or reacts to the received information.

 


Publisher

In the context of a message broker, a "Publisher" refers to a component or entity that generates messages and sends them to the message broker. A message broker serves as an intermediary or middleware that facilitates communication between different applications or systems by receiving, processing, and forwarding messages to the appropriate recipients.

The Publisher is the source of messages within this system. It produces messages and sends them to the message broker, which then forwards them to other systems or subscribers. Essentially, the Publisher sends information or events that can be received and processed by other parts of the system or by subscribers.

For example, in a messaging system, a Publisher could be an IoT device generating sensor data and sending it to the message broker, which then disseminates this data to various subscribers or receivers that process or act upon this information.

 


Topic

Message topics are a concept in message processing that allows messages to be categorized into topics or subjects and sent to various recipients interested in a specific topic.

In the context of message brokers or messaging services, topics enable the publication of messages related to a particular theme or category. These messages can then be received by multiple subscribers or recipients interested in that topic by subscribing to it.

A publisher, responsible for generating messages, sends a message to a specific topic, and multiple subscribers can receive these messages by subscribing to or registering interest in that topic. This topic-based communication allows for flexible, scalable, and targeted message distribution in distributed systems or applications.

For instance, a message topic could be 'Technology,' and all messages associated with this topic would be sent to subscribers interested in technology, while other subscribers interested in topics like 'Sports' or 'Science' would only receive messages related to those specific themes.


Queue

A queue is a data structure that operates on the principle of 'First In, First Out' (FIFO). This means that the first element inserted into the queue is the first one to be removed.

Think of it like a real-life queue: those who arrive first are also served first. In computer science and message processing, a queue is used to store elements or messages waiting to be processed by a process, application, or system.

For instance, a message queue in a message broker works similarly. When an application sends a message, it's placed in the queue, waiting there until it's picked up and processed by another application or system. This facilitates efficient, ordered, and timed processing of messages or tasks.


Advanced Message Queuing Protocol - AMQP

AMQP stands for Advanced Message Queuing Protocol. It's an open-standard application layer protocol for message-oriented middleware, designed for exchanging messages between systems. AMQP enables different systems or components to communicate by passing messages through a message broker, allowing for reliable and asynchronous communication between applications, services, or devices.