Hacker News new | past | comments | ask | show | jobs | submit login

It's totally possible to write code that's straightforward to port later. I'd say the biggest blockers tend to be database and code-organization related.

If you make a component that is the sole entrypoint to it's concerns, gets it's own database, and have an ORM or database context layer that is capable of dealing with that, moving to a microservice is as simple as taking that same code, exposing an http layer to it, and making your original interface call to the service instead.

If other code is joining into the relevant tables, skipping said interface and doing it's own thing with the guts of it, you'll have issues.

This can of course be done in any language, really, though database tooling can definitely vary in ease of doing it




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: