Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Composition-oriented pattern for API development (github.com/allmonday)
1 point by tangkikodo on Jan 18, 2024 | hide | past | favorite | 1 comment


The current popular approach is to use GraphQL, but the introduction cost of the entire solution is not low for the backend. Additionally, the frontend needs to manually write queries to describe fields, which lacks the smooth experience of directly using RPC-like requests.

The combination-oriented development model is to solve this problem. By using pydantic2-resolve , the router layer is responsible for building the schema to encapsulate changes, thereby avoiding changes to service and client.




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

Search: