News for hackers. Stuff that matters.
Re:Do we need a web API? by zemnmez on Thursday November 28, 2019 @11:33AM (#21658506)
this is just JSON RPC? The "constantly serialize and deserialize it" statement is totally untrue too... The frontend makes 6 XHR calls just to render a single page and they're all just JSON. The idea of the frontend 'just calling' the backend with no API boundary is nothing short of atrocious for security.

The only feasible logical end to this is ASP, which was an interesting idea when it was launched 19 years ago

Re:Do we need a web API? by mvila on Thursday November 28, 2019 @07:16PM (#21661034)
This has nothing to do with JSON RPC. Liaison uses Deepr (https://liaison.dev) as a communication protocol.

Regarding the number of XHR calls, to be accurate, it is not 6 but 4. Once Liaison is complete and optimized, the number of calls should drop to 2.

Also, please keep in mind that Liaison is made for building single-page applications. So, using it for a simple blog might not be the right choice.

And about your security concern, please head over here: https://news.ycombinator.com/item?id=21660785