You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the evolving landscape of microservices, communication has always been a focal point. Microservices can interact in various ways, be it through HTTP/REST calls, using messaging protocols like RabbitMQ or Kafka, or even employing more recent technologies like gRPC. Yet, regardless of the communication method, the goal remains the same: seamless, efficient, and robust interactions. Today, we’ll explore how Laravel Workflow can fit into this picture and optimize the communication between microservices in a unique way.
15
13
16
14
## The Challenge
@@ -74,10 +72,10 @@ When working with microservices, it’s common for each service to have its dedi
74
72
75
73
## Step-By-Step Integration
76
74
77
-
### 1. Install `laravel-workflow` in all microservices.
75
+
####1. Install `laravel-workflow` in all microservices.
78
76
Follow the [installation guide](https://laravel-workflow.com/docs/installation/).
79
77
80
-
### 2. Create a shared database/redis connection in all microservices.
78
+
####2. Create a shared database/redis connection in all microservices.
81
79
```php
82
80
// config/database.php
83
81
'connections' => [
@@ -91,7 +89,7 @@ Follow the [installation guide](https://laravel-workflow.com/docs/installation/)
91
89
],
92
90
```
93
91
94
-
### 3. Configure a shared queue connection.
92
+
####3. Configure a shared queue connection.
95
93
```php
96
94
// config/queue.php
97
95
'connections' => [
@@ -103,7 +101,7 @@ Follow the [installation guide](https://laravel-workflow.com/docs/installation/)
103
101
],
104
102
```
105
103
106
-
### 4. Ensure only one microservice publishes Laravel Workflow migrations.
104
+
####4. Ensure only one microservice publishes Laravel Workflow migrations.
107
105
Update the migration to use the shared database connection.
0 commit comments