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. And the more microservices you use the more dynamically typed the whole project gets overall.

I mean this is just not true in the general sense. I've setup plenty of microservices with various typed APIs. Protobufs are an example of an extremely easy to implement, strongly typed, API tool.

I don't think you have to define a microservice by http requets with JSON.



Until you want to update a protobuf definition and then tear your hair out because you cannot atomically ship changes to clients and servers. Even if the code in your source tree says everything is a-okay that one service that hasn't been updated shits the bed when handed a proto with mismatched types.

Thus, proto definitions become an "only add, never modify or remove" thing. Not ideal.




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

Search: