Agrest (@AgrestProject) header
Agrest (@AgrestProject) profile picture

Protocol and framework for flexible model-driven #REST data services. #Opensource. Supported by @ObjectStyle. (f.k.a. LinkRest)

Joined July 2017
Photo by Agrest (@AgrestProject)Photo by Agrest (@AgrestProject)
A kind of situation @AgrestProject is designed to avoid
Just reviewed a web page making 55 fetch calls totaling 570k of JSON. This one page is 1.6 MB. Why 55 calls? Because each database table is exposed as an endpoint. The UI joins all the JSON together via the provided foreign keys. To be clear: Don't do this.
1
2
235
That’s where Agrest.io is different from GraphQL - you not only get the graph , but also a fully working RDBMS backend. And it is REST style of course
I think GraphQL is quickly moving to one of my least favorite technologies. Building an efficient query system for the server is almost writing a database and as a user it has a lot of rough edges. Good idea but man is it complex.
Cayenne 4.2.M3 is released. Lots of critical bug fixes. Upgrade is recommended to 4.2 users. 4.2 branch is quickly stabilizing. Hoping the next release will be a Beta. cayenne.apache.org/2021/03/c…
This is why we decided to keep investing into @AgrestProject after a brief look at GraphQL years ago. Same graph query capabilities, but fully embracing HTTP. Security though is still more complicated vs single-purpose endpoints
GraphQL offers some short term gains (reduced design effort) in exchange for long term problems. This includes lack of error handling as part of the GraphQL spec but part of a vendor-led impl. Plus, securing a single endpoint is hard (ask those of us that had to do it for SOAP)
2
2
A belated Cayenne 4.0 post. Hammering home how easy the "db-first" flow is now. medium.com/@andrus_a/apache-…
4
10
Service API’s as Star Wars movie titles. The Force Awakens - XML+XSD+SOAP+WSDL RPC A New Hope - REST+JSON The Empire Strikes Back - GraphQL+JSON+Introspection Remember hitting a WSDL URI? GraphQL Introspection = WSDL graphql.org/learn/introspect… Code long enough & things return.
22
79
8
207
API пати на #jokerconf продолжается с докладом по #LinkRest, альтернативу #GraphQL. Вперёд, @andrus_a! :)
2
7