News for hackers. Stuff that matters.
Re:MessagePack: like JSON, but fast and small by mumblemumble on Tuesday March 10, 2020 @02:12PM (#22537937)
I guess. . . for my part, it's always seemed to me like messagepack falls into a sort of uncanny valley of serialization formats. Schemaless is very undesirable for internal APIs, IMO. Plaintext is desirable for public-facing APIs that don't need to be particularly performant, but only if you're willing to go full HATEOAS. If you're going binary for performance or don't want to bother with HATEOAS, I'm back to preferring a published schema over something that's (semi-)self-describing plus some documentation that's invariably incomplete or out of date.
Re:MessagePack: like JSON, but fast and small by ClumsyPilot on Tuesday March 10, 2020 @02:18PM (#22537981)
I have never seen any benefits of HATEOAS materialise - it is too free-form to be machine parceable, is it far more difficult to navigate than Swagger or GraphQ. Maybe I dont get something?
Re:MessagePack: like JSON, but fast and small by mumblemumble on Tuesday March 10, 2020 @02:33PM (#22538119)
I don't ever machine parse it, but it can be useful for manual discovery if you get an API that isn't super well documented. I think I might generally prefer Swagger, too, but not everything is implemented in a language that has a library like that.

At the end of the day, though, I'd seriously much rather just have a halfway well commented *.proto file. Work smarter, not harder. It's just that I won't recommend that for public-facing APIs because GRPC isn't universally well supported, while JSON over HTTP is.