Kubernetes in 2023: An Expert Perspective

2023 Predictions on Kubernetes

As we move into the new year, it’s always interesting to look ahead and consider what the future might hold. What can we expect in 2023 in the rapidly evolving field of cloud technology, specifically in Kubernetes? For some insight, TFiR’s Swapnil Bhartiya sat down with Julian Fischer, CEO, and founder of anynines, to discuss his thoughts and predictions for the year that has just begun.

(more…)

KubeCon & CloudNativeCon Detroit 2022 – The Recap

KubeCon NA 2022 Recap Article Header Image

Aaand… KubeCon & CloudNativeCon NA 2022 is already over. We had the privilege to attend the event in Detroit from the 24th to the 29th of October. There, we spoke with many people from the cloud industry, and we could watch a lot of talks on the exciting work the community is doing.

As we did for the past edition of the event in Valencia, we used the information we gathered to distill the list of major trends and noteworthy projects that we could spot.

It’s interesting how some of the trends we identified in Valencia were confirmed, while others reversed entirely!

Without further ado, here are our highlights of KubeCon NA 2022.

(more…)

Error Handling in GO – Part 3

Error Handling and Abstracting in GO - Part 3

Chapter 3 – Writing a Custom Error Type

In the first chapter, we learned the basics of errors in go. How to create an error with a particular message. Then we looked into exposing different types of errors in our packages so that consumers of our code can handle them differently, if appropriate.

In the second chapter of our series, we learned how to enhance our error messages to provide better user information. We learned how to add additional information to our error messages while retaining the ability to distinguish between different error cases. The additional information can be used by whoever receives the error message to hopefully resolve their issue. In our example of a configuration provider, we return a syntax error if the provided configuration is in an invalid syntax.

We then learned that we can wrap errors with additional information, such as the line number of the syntax error. This additional information is not easily machine-readable, and we cannot use it to refine our automated error handling, such as retry logic. We can only differentiate based on the error we wrapped with the additional information.

In this part, you will learn how to create your own error types, which can have any behavior you may find helpful. We will use this to resolve an issue we found in the last chapter: how to decorate an error that was returned from a library our application uses, decide how to handle it based on our sentinel errors, and yet, still have access to the original error. Once you know how to implement custom error types, we will show you some examples where this may be useful.

(more…)