MarcelLZ / barbecue-company

Have fun!
2 stars 0 forks source link

About APIs #79

Open lucasconstantino opened 6 years ago

lucasconstantino commented 6 years ago

I see the connection between your server/client applications rely pretty much on a RESTy interface. I know you've been reading our articles, and by now you are probably aware that we are huge fans of GraphQL. Can you tell us what is you general experience on APIs, besides using REST patterns?

Ref.: https://github.com/MarcelLZ/barbecue-company/blob/303d70840c7f0384d47eb4a2b9512b4583461a65/frontend/src/utils/api.js#L1-L20

MarcelLZ commented 6 years ago

Sure! Where I work nowadays, we are migrating our monolith to microservices based application, and its communication is basically REST. So we put the KONG API GATEWAY to be our main entry point to request whatever you want, and our microservices stay hidden behind this GATEWAY. We based our decisions on this book: REST - Construa API's inteligentes de maneira simples and we are using the first technique from Edson Yanaga's book to share the data with our microservices. :D

MarcelLZ commented 6 years ago

I made a simple POC with GraphQL, and I loved it. I didn't make the project with GraphQL because I don't know how to connect it with redux =P It's a little bit confusing to me yet.