Wix Engineering, July 29, Issue #20 |
|
|
Wix Engineering's official newsletter, covering engineering insights, updates and news. We develop innovative cloud-based web applications that influence our +180M users worldwide. Subscribe here |
|
|
[article] How (Not) To Add Deadlock To Your Critical Flow - 3 Simple Steps |
|
|
A story of a Deadlock - how a single library ended up causing a deadlock six months after it was released and what a new feature, that was recently developed by Wix, combined with java's ConcurrentHashMap, has to do with it.
More on this and other lessons learned, alongside some practical advice, in this new blog post by Guy Nahum. Read here |
|
|
[video] A Change-Data-Capture use-case: designing an evergreen cache - Nicolas Frankel |
|
|
Your app is slow? Just cache your SQL database queries, right? Even if you have inherent database design flaws or query structure issues, caching will most likely solve your problem. But wait, what if your app is not the only thing that writes to the DB? Okay, well, we can always do polling, execute DB triggers, etc... Let's face it though - it all works until it doesn't.
Enter Change-Data-Capture. With it, a DB can send change events (SELECT, DELETE and UPDATE) which you can then register to. Think of it as an opposite to Event Sourcing that aggregates events to produce state - CDC is about getting events out of states. Once CDC is implemented, you can subscribe to events and update cache accordingly! Nicolas Frankel describes an easy-to-setup architecture that leverages CDC to create an evergreen cache. Watch here |
|
|
[open source] GitHub's OpenAPI Description, Foam and intdocucing Okidoc |
|
|
* GitHub have open sourced an OpenAPI description of their REST API. Check it out here. * Better long-form writing & research directly in VS Code? Something that's also exploding on GitHub right now? I guess you should check out Foam then. It's here.
* Ever wanted to create a great website for your docs quickly? Enter Okidoc - a flexible tool to easily document your code. It allows you to generate .md documents from your code files, build documentation websites, and much more. See for yourself.
|
|
|
[podcast] Outmatched: How Svelte Beats the Odds |
|
|
There's a blazingly fast web framework out there, one that's easy to learn and battle-tested in real world applications. And no, we’re not talking about React. Since Svelte was invented by Rich Harris, at every conference and in every Twitter thread, he has had to fight an uphill battle against other frameworks, just to be noticed. In our newest podcast episode Harris tells the tale of Svelte and shares his insights into having developers give a relatively unknown framework a go. Also, how Wix Engineering is testing Rich’s framework.
|
|
|
Listen and subscribe here: |
|
|
[insights we liked] Quantum Computers, Regular Testing and Deploying Safe |
|
|
[feedback] We want to hear you! |
|
|
|
|