β¬οΈ Main Note
https://docs.google.com/document/d/1FCWnCtq162Bn2aDJY1j6zUaniezXNUkzfZRjRFb6TE8/edit
β€ Meaning that the service is divided into micro status
β€ Service is divided one by one specifically
β€ So when there is an error in fetchBoard API, all the other APIs are normally working, but only the fetchBoard API isn't working.
--> Helps to get free from the server error
Gateway : Entrance role of API
β€ To make a gateway, client and module is needed
Advantage
μμ€μ½λ μ 체λ₯Ό λΉλ/λ°°ν¬ νλ €λ©΄ μ€λ κ±Έλ¦Ό
β> κ²μν APIλ°λλ©΄ κ²μν ν΄λλ§ λ€μ λ°°ν¬
μλ¬λμ μλ²κ° μ£½μΌλ©΄ λͺ¨λ API μ¬μ© λΆκ°λ₯
β> κ²μν μ£½μ΄λ μν, λ‘κ·ΈμΈ λ± λλ¨Έμ§λ λͺ¨λ μ¬μ© κ°λ₯
Disadvantage
μ 체μ μΈ κΈ°μ 볡μ‘λ μ¦κ°
β> λ°λΌμ μμ μλΉμ€λ³΄λ€ ν° μλΉμ€μμ λ§μ΄ μ¬μ©
Conclusion
Not an essential thing to do
// api-gateway
yarn add @apollo/gateway
// services
yarn add @apollo/federation
yarn add @apollo/subgraph