Architecture Weekly #96 - 10th October 2022
Welcome to the new week! I’ve heard a few times that Event Sourcing is hard to test. I’m not sure where this myth comes from; maybe from mixing it with event streaming. Event Sourcing logic is pretty straightforward. We’re getting the list of events recorded for a specific entity (e.g. bank account), building the current state from them and running business logic based on it. As a result, we’re getting either a new event or a list of events. We can think about business logic as a pure function and just verify if, for the defined inputs (state + command) we’re getting the expected result (event or error). In my last article, I explained in detail how to do that: Check new goodies to my small testing library Ogooreck, in which I added helpers to cut the boilerplate of testing business logic (not only event-sourced one). Tests are great, but nowadays, not all we can verify before production. I wrote once that I tested on production and am not ashamed of it. In the distributed world, we can be certain about one thing: there will always be something that’s not working. We need to embrace that and make our systems resilient to failure. Check more in: That’s also why I like the Event-Driven approach, as it helps with that. It won’t help us to avoid failure, but it will enable us to manage it and be prepared for the worst. Of course, it may also introduce accidental complexity, so it’s always worth questioning what we read. InfoQ released a new eMag about the streaming pipelines: Check also the new Kafka release notes. The Kafka team is pushing for the removal of Zookeeper. On a bigger scale, everything is custom. Kafka provided their implementation of the Raft protocol, called KRaft and aimed to remove the dependency for Zookeeper. It served them well, but they decided they wanted to have more control, fewer moving pieces and make it more fine-tuned to their needs. Read: Speaking of the design. Most of the architects I know come from the backend or operations. We tend to ignore the UI and UX as something that’s maybe nice but not so important. That too often leads to building the iceberg, where we’re trying to hide too much underwater instead of delivering more to users. Check the nice summary about the UI and UX in: From the industry news, read more about the not-great time for NFTs and Metaverse. I’ve heard that “future is now”. It seems that not quite yet.
Have you thought about watching Star Wars on the terminal? I bet you did. See it: Check, also other links! Cheers p.s. I invite you to join the paid version of Architecture Weekly. It already contains the exclusive Discord channel for subscribers (and my GitHub sponsors), monthly webinars, etc. It is a vibrant space for knowledge sharing. Don’t wait to be a part of it! p.s.2. Ukraine is still under brutal Russian invasion. A lot of Ukrainian people are hurt, without shelter and need help. You can help in various ways, for instance, directly helping refugees, spreading awareness, and putting pressure on your local government or companies. You can also support Ukraine by donating, e.g. to Red Cross, the Ukraine humanitarian organisation. You may also consider joining Tech for Ukraine initiative. ArchitectureDistributed SystemsDevOps
FrontEnd
TestingMobileJava
.NET
PythonManagementIndustry
TriviaYou’re a free subscriber to Architecture Weekly. For the full experience, become a paid subscriber. |
Key phrases
Older messages
Architecture Weekly #95 - 3rd October 2022
Monday, October 3, 2022
Architecture Weekly - links and resources to boost your knowledge and developer skills!
Webinar #4 - From CQRS to CRUD in Practice
Tuesday, September 27, 2022
Watch now (98 min) | Technical patterns are filled with myths and mishaps. Most of the material shows a skewed perspective about CQRS. They suggest that you need multiple databases and messaging
Architecture Weekly #94 - 26th September 2022
Monday, September 26, 2022
Architecture Weekly - links and resources to boost your knowledge and developer skills!
Architecture Weekly #93 - 19th September 2022
Monday, September 19, 2022
Architecture Weekly - links and resources to boost your knowledge and developer skills!
Architecture Weekly #92 - 12th September 2022
Monday, September 12, 2022
Architecture Weekly - links and resources to boost your knowledge and developer skills!
You Might Also Like
Build5Nines Newsletter - April 25, 2024
Friday, April 26, 2024
View this email in your browser Build5Nines Build5Nines Newsletter Thank you for subscribing! I look forward to sharing with you the latest cloud news, technical help, and other thoughts around DevOps
Ranked | Which City Has the Most Billionaires in 2024? 💰
Friday, April 26, 2024
Just two countries account for half of the top 20 cities with the most billionaires. And the majority of the other half are found in Asia. View Online | Subscribe Presented by: Discover what drives
iOS Dev Weekly - Issue 658
Friday, April 26, 2024
Meet the Swift Student Challenge winners for WWDC 2024 🎉 View on the Web Archives ISSUE 658 April 26th 2024 Comment Visiting WWDC is always a special experience, but attending is harder than with many
Introducing SwiftUI to the team, Let loose and much more!
Friday, April 26, 2024
View in browser Hello, you're reading Infinum iOS Cocoa Treats, bringing you the latest iOS related news straight to your inbox every week. How We Got Everyone on Board with a New Technology
SWLW #596: SRE and the art of improvisation, The power of celebration, and more.
Friday, April 26, 2024
Weekly articles & videos about people, culture and leadership: everything you need to design the org that makes the product. A weekly newsletter by Oren Ellenbogen with the best content I found
Notion's New Look | In-App Notifications | Duplicated Automations
Friday, April 26, 2024
Your weekly Notion digest with the finest tip, latest news, and improvements! 🔥 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Don’t celebrate the demise of non-competes quite yet
Friday, April 26, 2024
A slew of lawsuits are heading the FTC's way after it voted to kill non-competes View this email online in your browser By Alex Wilhelm Friday, April 26, 2024 Welcome to TechCrunch AM! I love this
The best work laptop for most people
Friday, April 26, 2024
Old Kindle? Don't do this; How to change your IP address; Net neutrality restored -- ZDNET ZDNET Tech Today - US April 26, 2024 placeholder The work laptop I recommend to most people is not made by
New 'Brokewell' Android Banking Malware Spread Through Fake Browser Updates
Friday, April 26, 2024
THN Daily Updates Newsletter cover Webinar -- Uncovering Contemporary DDoS Attack Tactics -- and How to Fight Back Stop DDoS Attacks Before They Stop Your Business... and Make You Headline News.
Apple announces an iPad event for May 7
Friday, April 26, 2024
The Morning After It's Friday, April 26, 2024. Apple has scheduled its next product showcase for May 7, a few weeks before its Worldwide Developers Conference, clearing space for even more