Maxime Vaillancourt Shopify Engineering

Shopify rewrites away from their Rails monolith

Maxime Vaillancourt shared the background and details of how Shopify reduced their storefront response times with a rewrite.

The Rails monolith still handles checkout, admin, and API traffic, but storefront traffic is handled by the new implementation.

Designing the new storefront implementation from the ground up allowed us to think about the guarantees we could provide: we took the opportunity of this evergreen project to set us up on strong primitives that can be extended in the future, which would have been much more difficult to retrofit in the legacy implementation. An example of these foundations is the decision to design the new implementation on top of an active-active replication setup. As a result, the new implementation always reads from dedicated read replicas, improving performance and reducing load on the primary writers.

Similarly, by rebuilding and extracting the storefront-related code in a dedicated application, we took the opportunity to think about building the best developer experience possible: great debugging tools, simple onboarding setup, welcoming documentation, and so on.

Shopify rewrites away from their Rails monolith

Andrzej Krzywda blog.arkency.com

An anti-if "framework"

Andrzej Krzywda:

My goal is to help you improve the design of the if/else based codebases. Yes, that probably means creating new method, extracting new object. It might be a bit OOP. If that’s not your taste and you’re fine with if/else then this may not be for you.

He then goes on to refactor a deeply nested Ruby method by extracting some classes that are responsible for their own behavior. This is perhaps a bit rudimentary to long-time OOP folks, but I see a lot of code out there looking like Andrzej’s example method so there’s plenty of people who would benefit from understanding this concept.

Tom Larkworthy observablehq.com

Most favorited Hacker News posts of all time

Thanks to Tom Larkworthy for putting together this “goldmine of tech resources.” The cool thing is you can play with the data yourself and make your own analysis.

The most favorited articles by the top 10k most active Hacker News members. The list skews toward innovative learning resources and tech career tips, but there is a little of everything.

Data was scraped 2020-09-1 from the public favourites lists. This is an observable notebook with the data attached as a file, so you can fork your own analysis if you don’t like how I did it (e.g. you could find the favorited Ask HN posts).

To calculate the top favourites, I give each member 30 votes to divided over their (max) 30 most recent favourited articles. I sum the votes over all articles. The results are a goldmine of tech resources.

DigitalOcean Icon DigitalOcean – Sponsored

Foundations of computer security

logged by @logbot permalink

This is the first talk in a series of Tech Talks from DigitalOcean around Computer Security titled Foundations of Computer Security. This talk will walk you through the fundamentals of computer security, from its history, to common threats you may face, to recommended practices to keep you safe.

What will you learn? You’ll learn why we need security, what types of attacks you may face, and some general recommended practices and policies to keep you secure.

Who is this talk designed for? Anyone who’s new to security or wants a refresher on common security concepts. Beginners of all paths: SysAdmins, Founders, CTOs, DevOps engineers.

Hardware github.com

The Open Book Project

An ambitious attempt to create an open source device for reading. But why?

As a society, we need an open source device for reading. Books are among the most important documents of our culture, yet the most popular and widespread devices we have for reading — the Kobo, the Nook, the Kindle and even the iPad — are closed devices, operating as small moving parts in a set of giant closed platforms whose owners’ interests are not always aligned with readers’.

It’s still early days, but the project got a boost of support by winning Hackaday’s Take Flight with Feather contest in January.

The Open Book Project

Tooling github.com

youtube-dlc is the new youtube-dl

Open source software shows its resiliency once again:

youtube-dlc is a fork of youtube-dl with the intention of getting features tested by the community merged in the tool faster, since youtube-dl’s development seems to be slowing down.

If you’re unaware of youtube-dl, it’s like a Swiss Army Knife for downloading videos from the web. It’s a great tool and I’m happy to see the community rally around its maintenance.

Productivity deprocrastination.co

How to stop procrastinating by using the Fogg Behavior Model

According to FBM, there are three things we need to do something:

  • Motivation
  • Ability
  • Trigger

The key is that we need to have all three at the same time in order to act. Since our problem is procrastination, we’ll focus on how we fail at each one of these.

There’s more good discussion about overcoming the sources of procrastination on Brain Science’s episodes on navigating procrastination and being indistractible.

Kubernetes github.com

K9s makes K8s look gooood ✨

We’ve linked K9s up in the past, but I’ve been playing with it today and I just had to share it again. Gerhard has us up and running on LKE (more on that coming to the blog and podcast soon) so I’ve had a chance to kick the tires a bit.

I have no idea how any of this magic works, but I do know that I like it and I’m excited to learn more. Here’s a screen grab of its Pulses feature, which gives you an overview of your entire cluster.

K9s makes K8s look gooood ✨
0:00 / 0:00