Wiki: Open Source in Israel - Go Proxy
For agents: Markdown version · Wiki index · Explore
- Speaker: Elazar Leibovitch
- Event: Reversim Summit 2014
- Video: https://www.youtube.com/watch?v=UEcs_Ih3qlI
- Transcript: /transcripts/2014/18-UEcs_Ih3qlI.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: Networking, Developer Experience, Software Engineering, Open Source
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker introduces an open source proxy library written in Go designed to make building custom HTTP and HTTPS proxies simple and lightweight. The talk covers the motivation behind creating the tool, such as easily simulating network latency for frontend developers and testing specific edge cases. Additionally, the speaker explains various advanced use cases like modifying requests on the fly, recording traffic for load testing, and enforcing application invariants. Ultimately, the audience learns how a simple standalone proxy can solve diverse development, testing, and debugging challenges.
Key points
- 0:07 The speaker introduces Go Proxy, a library that allows developers to easily create HTTP and HTTPS proxy servers.
- 1:08 The library enables developers to act as a man-in-the-middle to modify requests and responses, offering good performance and easy deployment as a single binary.
- 2:09 The project originated from a need to simulate slow CDN responses for frontend testing using just a couple of lines of code.
- 3:09 Developers can use the proxy to manipulate caching headers during development or automatically collect performance metrics across builds.
- 4:16 The proxy facilitates recording HTTP traffic to create realistic workloads for load testing, serving as an alternative to tools like Selenium.
- 5:16 Additional use cases include enforcing invariants like consistent library versions, optimizing images on the fly, and providing secure access to internal corporate networks.
Takeaways
- Use a programmable proxy to easily simulate network latency and edge cases during development.
- Leverage single-binary deployment languages like Go for tools that need to be easily distributed and run as services.
- Implement custom proxy logic to inspect, record, and modify HTTP/HTTPS traffic for testing and optimization.
Questions this talk answers
- How can I simulate slow network conditions or CDN failures during local frontend development?
- What are the advantages of writing a custom proxy server in Go compared to configuring traditional proxy software?
- How can an HTTP proxy be utilized to generate realistic load testing scenarios from real user traffic?
Technologies
Go, HTTP, HTTPS, JavaScript, jQuery, Ubuntu, Squid, Fiddler, Selenium
Tags
development tools, go, http, open source, proxy, testing