Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Funny you said that since a microservice API is always dynamically typed and its usage cannot be checked by compiler.

Not true at all, I have a build system in place that when changes are made to Typescript, the JSON Schema on the endpoints is updated, and client libraries are updated.

Types are validated at both compile time and runtime.

This is just one of many solutions to the problem, there are a lot of ways to get type safety for service endpoints, at both runtime and compile time.



That sounds like a regular monolith but with extra steps.


Except each service scales independently, can be updated independently (e.g. pri0 security bugs that require a breaking change can be applied to public IP facing services first), can be written in a different programming language, and can be rolled back/deployed independently.

Working in a microservice environment is nice, newly created services get the latest version of whatever tools are needed, older services can be upgraded as needed. Avoids the problem of being stuck on some ancient version of the JVM or Node.




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

Search: