Developing Microservices by using Lumen & RabbitMQ — Part 3

In the previous articles, we have covered the basics and also the fanout exchange, in this article we are going to explore the direct exchange and also develop two services which use this exchange. As it was explained in the first part of the series, A direct exchange delivers messages to queues based on a message routing key and the message goes to the queues whose binding key exactly matches the routing key of the message.

What we are up to in this article?

Now we are going to create two email services in which each one might…


In the previous article, we have tested our event and now we will follow with bringing the RabbitMQ in our workflow to successfully send messages from the e-store to the warehouse and sales app.

As described in the first part of this series, when one order is created in our store, we will send the order information to the warehouse and sales app to start the process of the order. …


In the following series, I would present the way to develop a simple microservice architecture by using Lumen and RabbitMQ Message broker.

To grasp the purpose of these series, understanding the basics of lumen, events, and also RabbitMQ is required.

What is RabbitMQ?

RabbitMQ is the most widely deployed open-source message broker. This message broker can be used for sending and receiving messages from one application to the other applications.

For more information please visit:

https://www.rabbitmq.com/

RabbitMQ Fundamentals:

Producer: A producer is a user application that sends messages to the consumers.

Consumer:

A consumer is a user application that receives messages.

Message:

It’s a simple serialized object…


In this article, I will explain a simple api gateway architecture in the microservice environment, this article shows how we can use this pattern for exposing our services to external consumers.

Api gateway is not a new term, but it‘s still a little fuzzy for new starters to grasp the terminology or how they could really use this pattern to solve their problem.

But What is an API Gateway?

I have come across many definitions and you might have your own definition too, So I would say: API Gateways is a single, unified API entry point across one or more…

Behzad Babaei

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store