context.Context
Aug. 20, 2020, 9:30 p.m. (4 years, 3 months ago)
0 Comments
Francesc Campoy and Isobel Redelmeier joins the panel to discuss Go’s context package including real-world insights into its use and misuse.
Changelog++ members save 3 minutes on this episode because they made the ads disappear. Join today!
Sponsors:
- Linode – Our cloud of choice and the home of Changelog.com. Deploy a fast, efficient, native SSD cloud server for only $5/month. Get 4 months free using the code
changelog2019
ORchangelog2020
. To learn more and get started head to linode.com/changelog. - Pixie – Pixie gives you a magical API to get instant debug data. The best part is this doesn’t involve changing code, there are no manual UIs, and this all lives inside Kubernetes. Pixie lives inside of your platform, harvests all the data that you need, and exposes a bunch of interfaces that you can ping to get the data you need. It’s a programmable edge intelligence platform which captures metrics, traces, logs and events, without any code changes.
- Datadog – Do you have an app in production that is slower than you like? Of course you do…is the performance all over the place…sometimes fast, sometimes slow? Do you know why? Well, with Datadog you will. Troubleshoot your app’s performance with end-to-end tracing and in one click correlate those Go traces with related logs and metrics. Use detailed flame graphs to identify bottlenecks and latency in your apps. Start your free trial, install the agent, create a dashboard, and get a free t-shirt! Head to datadog.com/gotime to get started.
- Fastly – Our bandwidth partner. Fastly powers fast, secure, and scalable digital experiences. Move beyond your content delivery network to their powerful edge cloud platform. Learn more at fastly.com.
Featuring:
- Francesc Campoy – Twitter, GitHub, Website
- Isobel Redelmeier – Twitter
- Mat Ryer – Twitter, GitHub, LinkedIn, Website
- Jaana Dogan – Twitter, GitHub, Website
Show Notes:
- Just For Func: #9 - The Context Package - Francesc’s YouTube channel & his episode on the context package
- context.WithValue example of avoiding key collision
- Context Keys in Go - Mat Ryer’s article expanding on this
- Context is for Cancelation - Dave Cheney’s argument that context is for cancellation
- Context isn’t for Cancelation - Dave Cheney’s argument that context isn’t for cancellation
- Make Ctrl+C cancel the context.Context - Mat Ryer’s technique for triggering a graceful cascade of shutdown across your program
- Join Changelog++ — directly support us, make the ads disappear, and get closer to the metal
Something missing or broken? PRs welcome!
No comments have been posted yet, be the first one to comment.