code-architect / Microservices-with-Lumen

A Lumen based microservice ready to deploy with guzzle for consumption of api and OAuth 2
171 stars 92 forks source link
guzzle jwt-authentication laravel-passport lumen-framework lumen-micro-framework microservice-framework microservices microservices-architecture oauth-2 php7 restful-api sqlite-database sqlite3

Microservices with Lumen

This is a part of a huge project I was building for a client. In this small example I have effectively explained and work with almost all the features of microsurvices architecture.

The Main system is LumenApiGateway and the microservices are LumenAuthorApi & LumenBookApi. I am using guzzle for consuming api and dusterio/lumen-passport for security.

Also stopping direct access to the microservices, to access the microservies directly the client must pass some kind of token which is registered in the microservice.