A Laravel app with a Lumen API, does that really make sense?

Posted 3 years ago by vercoutere


Something I often come across is the suggestion to use microframeworks (such as Lumen) for certain things like an API.

I've been thinking about this for a while and this kinda bothers me:

If I were to write an API in Lumen and then create a Laravel application that talks to my Lumen API through something like Guzzle, wouldn't that essentially double the number of HTTP requests?

A request comes into your Laravel app, then your Laravel app makes a request to your API, right?

I'm kinda confused about this because every developer is trying to minimize HTTP requests, but this doesn't seem to bother anyone.

Can anyone clarify this for me or possible explain why my thinking would be wrong?

Please sign in or create an account to participate in this conversation.