-
Implementing the Outbox Pattern with Kafka and C#
Last updated: Thursday, October 24, 2024
Published in: CODE Magazine: 2024 - September/October
Joydip delves into the outbox pattern as a reliable method for ensuring data consistency and reliable event publishing in microservices architectures. He provides a comprehensive guide on implementing this pattern using Apache Kafka and C# within ASP.NET Core applications, covering key components, benefits, and drawbacks. The article includes a detailed walkthrough of setting up Kafka, creating database tables, and developing both producer and consumer services. Additionally, Joydip discusses real-world use cases and alternatives to the outbox pattern, such as Two-Phase Commit and Saga Pattern, to give readers a holistic view of the pattern's practical applications and limitations.
-
Aspirational .NET: What Is .NET Aspire?
Last updated: Thursday, February 22, 2024
Published in: CODE Magazine: 2024 - March/April
Shawn describes the Aspire framework as something the ASP.NET Core team created to simplify the set-up of multiple smaller projects (microservices or not) with related components that you might be using (e.g., data stores, containers, queues, message buses, etc.). Shawn explores the concept of cloud native and explains how .NET Aspire simplifies the setup of distributed applications by providing tooling and a dashboard for monitoring and orchestration. Aspire is impressive so far.
-
Building Microservices Architecture Using GraphQL and ASP.NET 7 Core
Last updated: Wednesday, November 13, 2024
Published in: CODE Magazine: 2023 - July/August
This article provides an overview of GraphQL, its features and benefits, and how it compares and contrasts with REST and gRPC. It also explains how to take advantage of GraphQL to build microservices-based real-time applications in ASP.NET Core 7 and provides an overview of GraphQL schemas and their components.
-
Kubernetes Security for Starters
Last updated: Wednesday, November 22, 2023
Published in: CODE Magazine: 2023 - March/April
In this article, Alexander Pirker discusses the importance of security in Kubernetes clusters. He explains that while Kubernetes provides flexibility and ease of use, there are security considerations that need to be addressed. Pirker covers various aspects of Kubernetes security, including securing service account tokens, making the root file system of containers read-only, isolating network traffic among namespaces, avoiding hostPath mounts, protecting sensitive information in ConfigMaps, encrypting secrets, and properly configuring RBAC. He emphasizes the need for operators to be aware of these security considerations and implement best practices to protect their Kubernetes clusters.
-
Getting Started with Cloud Native Buildpacks
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2022 - September/October
Learn to create Cloud Native Buildpacks to create container images without a Dockerfile.
-
YARP: I Did It Again
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2022 - September/October
Yet Another Reverse Proxy (YARP) might sound like something you’d rather not do, but Shawn shows you how it can improve performance if you’ve got microservices, load balancing issues, URL writing, or tight security issues. Learn "what is a reverse proxy?" and how to configure a reverse proxy.
-
Secure Microservices
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2022 - March/April
These days, microservices seem to be solving all the architectural issues in software development. They’re everywhere, and that’s a good thing, right? Alexander explains how to make sure this simple construct doesn’t leave you with a security problem.
-
Designing Microservices Architecture for Failure
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2021 - November/December
You’ve heard about microservices and how they help teams divvy up the workload. Joydip examines them even more closely to show you how you can use them as part of your test cycle, too.
-
Efficient Microservice Development with .NET 5
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2021 - September/October
Microservices have a lot of potential. They’ve got some really nifty tools and capabilities. But setting up your teams to work with them can feel like running an ultramarathon with 400 pounds strapped to your back. Alexander shows you that they sound scarier than they are and provides some great advice for how to use them intelligently.
-
Introduction to Containerization Using Docker
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2021 - March/April
Wei-Meng explains how Docker Engine replaces virtual machines with containers to host the apps and libraries you need, completely independent of which OS you’re using. Docker is written to run natively on the Linux platform. If you're using Windows or Mac OS, Docker creates a Linux virtual machine, which itself hosts the containers.
-
Project Tye: Creating Microservices in a .NET Way
Last updated: Wednesday, August 31, 2022
Published in: CODE Focus Magazine: 2020 - Vol. 17 - Issue 1 - .NET 5.0
Learn to use Project Tye, an experimental developer's tool that makes the experience of creating, testing and deploying microservices easier in .NET. Note that Tye's deployment target is only to Kubernetes.
-
Intro to GraphQL for .NET Developers: Schema, Resolver, and Query Language
Last updated: Thursday, March 18, 2021
Published in: CODE Magazine: 2019 - September/October
Peter introduces you to GraphQL so your REST API client list can grow and change without a lot of pain. You can use strongly typed schema, eliminated over- and under-fetching, and you can get analytics about how clients are really using your API.
-
Understanding Microservices and Microservice Architecture
Last updated: Thursday, May 6, 2021
Published in: CODE Magazine: 2018 - January/February
Microservices and Microservices Architecture are what Service Oriented Architecture aimed to be by focusing not only on service decomposition, but also associated characteristics that make your entire application resilient and robust. Miguel explains the what, why, and how of the latest architectural buzz word.
-
Case Study: Writing Microservices with F#
Last updated: Wednesday, June 2, 2021
Published in: CODE Magazine: 2016 - November/December
If you’re lucky enough to be involved in building a new enterprise system, you’ll want to check this out. Rachel takes a look at how the company where she works made some interesting—and forward-looking—decisions, and she shows us the benefits of microservices while she’s at it.