Changing Lanes: How Lyft is Migrating 100+ Frontend Microservices to Next.js

Sometimes companies use the same words I use for my work and they sound like they mean completely different things.

So like /u/RowbotWizard says, it could mean different things for different teams.

So I can only tell you what 'microservice' means to me. If we go back to my examples, these would be 'microservice backend's only.

My understanding from this Medium post is that, because you Next.js gives you the ability to have your BFF(backend for frontend) right there in your pages/apifolder, you can literally do stuff like pages/api/user.js:

export default function handler(req, res) { res.statusCode = 200 res.setHeader('Content-Type', 'application/json') res.end(JSON.stringify({ name: 'John Doe' })) } right there along with your frontend code, bundle all the BFF that you would use. Hope this makes sense. Here is some references.

/r/reactjs Thread Parent Link - eng.lyft.com