Architecture Weekly #184 - 17th June 2024
Welcome to the new week! “Just put the load balancer in front of it and call it a day”. But is it really that simple? Was it ever “just do XYZ?“. I was preparing a new workshop recently. I wanted to show how to run Marten Async Daemon with multiple instances - essentially, I wanted to expand the general explanation from my previous article on scaling out Marten. And of course, the 5-minute task of work appeared to be a bit longer. As I’m writing this blog, not to forget what I learned, so here it is: guidance on how to configure load balancing of ASP.NET Web Api using Nginx and Docker Compose. (Suprisingly?) there are a few quirks around setting up IPs, ports and forwarding to make NGinx work with ASP.NET and Swagger. In the end, once you know it, then this looks not so hard and kinda makes sense, but yeah, once you know it. Before that, it’s never “just do XYZ”. Nowadays, we’re spammed by AI-generated visualisation from wannabe influencers. Personally, if I see such a post, it’s an instant unfollow from me. That’s a sign that I won’t get honest content from the person. Probably, that’s not a great rule, but it works well enough for me. Yet, visualisations are a great way to teach, and I respect the effort put into them. A great example of how to do it right, making it also interactive and engaging through gamification, is what Sam Rose did in his recent article: He showed the basic concepts around queuing, such as FIFO, LIFO, and Priority Queues, and allowed you to play with them with simple games. It's a must-see. The only thing that I’m missing there is an explanation of competing consumers, but it's still great stuff. Check also an article by Holly Cummins where she explains how to draw when you can’t draw. Drawing graphics and pictures is one of the best notetaking methods, and it’s an extremely useful and underrated non-programming skill. One of the most recurring themes in my conversations with my clients is the aim to use a serverless model. Actually, for them, being serverless is not the end goal. The goal is to have a pay-as-you-go model and make elastic decisions about scaling your systems. It’s about the optionality. They want to start small and gather fast feedback from the users. They don’t want to pay for services when they’re not using them. Plus, in case they succeed, they will be able to scale immediately. Of course, the challenge is that serverless usually costs more if you have steady traffic. And quick spikes to invalidated business model can collapse the product. Still, that’s already happening. Many popular tools are built traditionally, and they’re not always easy to scale out and use for serverless payloads. That includes tools like Kafka. Confluent is investing heavily in Kora, its cloud-native engine. And it already has competition from tools like Warp Stream. It’s an interesting practice to take the validated tooling and replace its internals. That’s not always faster to do, but already cuts you some product validation time. That’s what Warp Stream did, rewriting Kafka on top of AWS S3 using Go. Check out the story in the recent Developer Voices episode. I’m also considering how much Emmett's storage would be possible. The biggest challenge here is the concurrency. For queueing, it’s fine to “just” push new messages to the storage, while for the event store, you need to handle more granular concurrency. S3 and likes don’t have any concurrency handling, pushing you to use some other storage as a middle-man for optimistic concurrency checks. Warp Stream uses DynamoDB for that. Plus, the blob storage is cheap if you query and update bigger data rather than consistently. Still, there are intriguing challenges and approaches that we should use in other tooling. Still, there’s always an option to use PostgreSQL for everything, as Mike Freedman is glossing: Some tools like Neon are already using PostgreSQL on top of S3 storage. Fun times! Let’s move on with some news about the Gen AI world we’re living in. You know that I’m sceptical about that, but some news is worth covering, like…
Now, the question is, what does that actually mean? OpenAI was recently a Microsoft puppy. Do they try to move some lower-priority work there (like the privacy-related projects)? OpenAI is working on the Microsoft Big Boxes preparing Chat GPT 5 and is eating the computational powers; maybe they need more or are just trying to bump the negotiation position with Microsoft? It's hard to tell at the moment; we’ll keep an eye on that. Apple finally released their AI. Of course, they claim that everything will be privacy-first; we’ll get an AI-based generation of Emojis. Really. We’ll also get Siri with a new brain. In the end, it looks meh, but Apple, with its user-focus capabilities, shouldn’t be ignored here. Apple wants to train their models on the paid service content: Users got mad, as they learned about it through the “regular privacy terms update” to the Adobe Creative Cloud. It’s a service that stores data for tools like Photoshop, etc. Paid service. We paid with our privacy for free services like Facebook, Instagram, etc. Now, we’re paying for paid services with our privacy. Yikes. Slack shared how they modernised their codebase with GenAI, which is one of the promises of those coding tooling. They migrated their test engine for the React front end from Enzyme to the React Testing Library. An interesting quote is here:
The bold is mine. Yes, even with a pretty well-thought-through and planned process, just 20% of tests passed. Of course, the question is if it’s a small or big number. I’d also like to see how much time was spent analysing whether tests are still correct or not, as well as the time for preparation. That’d give real data if the work to make this happen wouldn’t be faster if it were done by some code fixes and manual work. Definitely, we’re not yet there where GenAI can migrate our codebase. And I doubt that we will be precisely at this point ever. Charity Majors wrote that Gen AI won’t build engineering team: And I agree with that, but it’s funny that this is posted on StackOverflow that just made a marriage with OpenAI. Check also other links! Cheers Oskar 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 the Ukraine humanitarian organisation, Ambulances for Ukraine or Red Cross. Architecture
Databases
JavaScriptAIAzureElixirJava.NET
RustManagementIndustry
SecurityTriviaYou're currently a free subscriber to Architecture Weekly. For the full experience, upgrade your subscription. |
Older messages
Architecture Weekly #183 - 10th June 2024
Monday, June 10, 2024
To GraphQL or not to GraphQL, that's the question we started this edition. We discussed the different perspectives on that. One of the issues is authorisation management, and from that, we went
Architecture Weekly #182 - 27th May 2024
Monday, June 3, 2024
Let's start this edition with the security. We always put it as the last point, but should we? We started with a spectacular Snowflake breach. We discussed if LLMS could help to avoid it (spoiler:
Papers We Love #2 - How do committees invent? (Melvin E. Conway)
Monday, June 3, 2024
Watch now (73 mins) | Hey! 😀 In the 2nd edition of Papers We Love, we tackled the famous article Mel Conway's article where he introduced his law. You probably already know the quote: Organizations
Architecture Weekly #181 - 27th May 2024
Monday, June 3, 2024
Boy, is it a new week already? It is, so let's see what #ArchitectureWeekly brought to you this time! We started with a discussion about Mel Conway's law, its wide impact and whether we could
Architecture Weekly #180 - 20th May 2024
Monday, May 20, 2024
We started with an invitation to discuss Conway's Law. Then, we discussed recent Cloud provider mishaps. Well, one AWS mishap on the bill for a DDoSed S3 bucket and a nightmare from Google Cloud
You Might Also Like
Re: Hackers may have stolen everyone's SSN!
Saturday, November 23, 2024
I wanted to make sure you saw Incogni's Black Friday deal, which is exclusively available for iPhone Life readers. Use coupon code IPHONELIFE to save 58%. Here's why we recommend Incogni for
North Korean Hackers Steal $10M with AI-Driven Scams and Malware on LinkedIn
Saturday, November 23, 2024
THN Daily Updates Newsletter cover Generative AI For Dummies ($18.00 Value) FREE for a Limited Time Generate a personal assistant with generative AI Download Now Sponsored LATEST NEWS Nov 23, 2024
📧 Building Async APIs in ASP.NET Core - The Right Way
Saturday, November 23, 2024
Building Async APIs in ASP .NET Core - The Right Way Read on: my website / Read time: 5 minutes The .NET Weekly is brought to you by: Even the smartest AI in the world won't save you from a
WebAIM November 2024 Newsletter
Friday, November 22, 2024
WebAIM November 2024 Newsletter Read this newsletter online at https://webaim.org/newsletter/2024/november Features Using Severity Ratings to Prioritize Web Accessibility Remediation When it comes to
➡️ Why Your Phone Doesn't Want You to Sideload Apps — Setting the Default Gateway in Linux
Friday, November 22, 2024
Also: Hey Apple, It's Time to Upgrade the Macs Storage, and More! How-To Geek Logo November 22, 2024 Did You Know Fantasy author JRR Tolkien is credited with inventing the main concept of orcs and
JSK Daily for Nov 22, 2024
Friday, November 22, 2024
JSK Daily for Nov 22, 2024 View this email in your browser A community curated daily e-mail of JavaScript news React E-Commerce App for Digital Products: Part 4 (Creating the Home Page) This component
Spyglass Dispatch: The Fate of Chrome • Amazon Tops Up Anthropic • Pros Quit Xitter • Brave Powers AI Search • Apple's Lazy AI River • RIP Enrique Allen
Friday, November 22, 2024
The Fate of Chrome • Amazon Tops Up Anthropic • Pros Quit Xitter • Brave Powers AI Search • Apple's Lazy AI River • RIP Enrique Allen The Spyglass Dispatch is a free newsletter sent out daily on
Charted | How the Global Distribution of Wealth Has Changed (2000-2023) 💰
Friday, November 22, 2024
This graphic illustrates the shifts in global wealth distribution between 2000 and 2023. View Online | Subscribe | Download Our App Presented by: MSCI >> Get the Free Investor Guide Now FEATURED
Daily Coding Problem: Problem #1616 [Easy]
Friday, November 22, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Alibaba. Given an even number (greater than 2), return two prime numbers whose sum will
The problem to solve
Friday, November 22, 2024
Use problem framing to define the problem to solve This week, Tom Parson and Krishna Raha share tools and frameworks to identify and address challenges effectively, while Voltage Control highlights