Building a Client API in Elixir: Best Practices

167
clicks
Building a Client API in Elixir: Best Practices

Source: reddit.com

Type: Discussion

The content covers a beginner's question about the best approach to implement a client API in Elixir, specifically how to obtain and use tokens for authenticated requests, and how to handle communication errors with external APIs. A commenter suggests using an HTTP client library like Req or Finch and starting with a simple function structure using `with` blocks to handle the sequence of HTTP calls. The suggestion is to avoid using GenServers or supervisors initially, emphasizing a linear approach and error handling strategies.

© HashMerge 2024