Do we really need a web API? ↦
Most of the time, web APIs are not functional requirements. They don’t add any value to the product we are building. They are just a necessary evil so the frontend can communicate with the backend. But is that really the case? Wouldn’t it be possible to get rid of these web APIs?
In response to this, Manuel built Liaison, which is still in alpha, but aims to seamlessly bridge the divide between frontend and backend without having to formalize an API between the two.
From reading the post, it appears to be akin to our old friend, RPC. If you are interested enough to dive into the code, he’s put together a RealWorld example which holds up quite well to the competition on a lines-of-code-to-implement basis.
Discussion
Sign in or Join to comment or subscribe
Manuel Vila
Fukuoka, Japan
Peace, Love & Software
2019-11-26T23:40:00Z ago
In case you worry about the interoperability of Liaison with other environments (like several people did), please head over to this new article:
https://liaison.dev/blog/articles/How-about-interoperability-oy3ugk
Evan Verworn
2019-11-28T15:32:57Z ago
Thank you for your port of ASP.net to javascript.
Manuel Vila
Fukuoka, Japan
Peace, Love & Software
2019-11-28T23:56:23Z ago
Thanks, Xori. However, if the overall problem is quite similar, the way it is solved is completely different.
2019-11-29T00:31:27Z ago
This sounds a lot like Meteor methods.
Manuel Vila
Fukuoka, Japan
Peace, Love & Software
2019-11-29T01:04:11Z ago
Yes, the goal is quite similar, but the implementation is totally different. Liaison is not a framework per se, because it sits at the language level. For more information on this topic, please read my last article.