stargatesg1's avatar

Api Project Structure

Lets say I have a simple e-commerce platform. I am trying to figure out how to structure my Lumen API

Cart API User API Orders api

Now does Lumen need a separate instance for each api

for instance the API's will be broken down like this.

users.mydomain.com orders.mydomain.com cart.mydomain.com

I just need some direction guidance.

0 likes
4 replies
stargatesg1's avatar

Thanks for the help.

it would be

mydomain.com/api/users

where is /api is all Lumen. But suppose that you want to hot swap frameworks so that /api/users is Lumen but /api/orders is NodeJS

topvillas's avatar

If you want to use different technologies for different parts of your API then you'll need to start looking at microservices and an API gateway.

stargatesg1's avatar

I agree I think Lumen is a step up for Microservices. Microservices is hard for just once person. Deployment is tough. Thanks for all the help

Please or to participate in this conversation.