HTTP Requests in Elixir vs. JavaScript with Yordis Prieto & Stephen Chudleigh

About this Episode

Published October 26, 2023 | Duration: 50:29 | RSS Feed | Direct download
Transcript: English

In today’s episode, Sundi and Owen are joined by Yordis Prieto and Stephen Chudleigh to compare notes on HTTP requests in Elixir vs. Ruby, JavaScript, Go, and Rust. They cover common pain points when working with APIs, best practices, and lessons that can be learned from other programming languages.

Yordis maintains Elixir's popular Tesla HTTP client library and shares insights from building APIs and maintaining open-source projects. Stephen has experience with Rails and JavaScript, and now works primarily in Elixir. They offer perspectives on testing HTTP requests and working with different libraries.

While Elixir has matured, there is room for improvement - especially around richer struct parsing from HTTP responses. The discussion highlights ongoing efforts to improve the developer experience for HTTP clients in Elixir and other ecosystems.

Topics Discussed in this Episode

  • HTTP is a protocol - but each language has different implementation methods
  • Tesla represents requests as middleware that can be modified before sending
  • Testing HTTP requests can be a challenge due to dependence on outside systems
  • GraphQL, OpenAPI, and JSON API provide clear request/response formats
  • Elixir could improve richer parsing from HTTP into structs
  • Focus on contribution ergonomics lowers barriers for new participants
  • Maintainers emphasize making contributions easy via templates and clear documentation
  • APIs drive adoption of standards for client/server contracts
  • They discuss GraphQL, JSON API, OpenAPI schemas, and other standards that provide clear request/response formats
  • TypeScript brings types to APIs and helps to validate responses
  • Yordis notes that Go and Rust make requests simple via tags for mapping JSON to structs
  • Language collaboration shares strengths from different ecosystems and inspires new libraries and tools for improving the programming experience

Links Mentioned

Elixir-Tesla Library:
Yordis on Github:
Yordis on Twitter:
Yordis on LinkedIn:
Yordis on YouTube:
Stephen on Twitter:
Stephen's projects on consciousness:
Owen suggests:
Guardian Library:
Straw Hat Fetcher:
Elixir Tesla Wiki:
Tesla Testing:
Tesla Mock:
Erlang Libraries and Frameworks Working Group: and

Special Guests: Stephen Chudleigh and Yordis Prieto.

Transcript (English):