What is tus und why using it at all?

Sooner or later every developer bumps into a project where there is a task to deal with online documents. If there is a suitable library in the framework at hand, they grab it which is of course advisable. But if there isn’t, many might say: “It cannot be as difficult. Just use HTTP or FTP and have fun.”

The fun wears off, if the internet connection gets broken, or the product owner suddenly wants to pause the upload process, or the infrastructure moves from one cloud provider to another, or there is more than one programming language on the client…


Whom is this story for?

If:

  • you heard at least once of Kubernetes, but never understood, how it works
  • too much of IT drives you mad
  • you want to get a general idea about Kubernetes
  • you have (almost) no difficulties to read a story that is a little longer than a regular post in the social media

then…

Start your career as a city mayor

Imagine, you are promoted to the city mayor on a planet in a galaxy far, far away. We call this city Kubercity. Your main duty is to organize work of many well motivated clones that are born in your city and ready to start.

Kubercity is a…


Preface

In the previous article we showed you how to connect to MongoDB Atlas with Go and interact with the database cluster. MongoDB Atlas is a cloud platform, therefore queries run through the public internet and must be very well secured. Let’s go over some of the options we have in terms of security and protection while creating a distributed cloud infrastructure. We’ll focus on one particular facility, and that’s a connection between a Google Kubernetes cluster and a MongoDB atlas.

Possible solutions

MongoDB Atlas offers three possibilities to secure the network access:

IP Access List

You can manage static IP addresses of hosts allowed to…


Preface

Many say Golang (or just Go) is a very good choice for developing a service for the cloud infrastructure. And that is mostly true. If you have a stateful service that requires a database in the backend, you may find it difficult to setup such cloud infrastructure and to establish a communication between the Go service and the database server.

Fortunately, there are already solutions that simplify our lives. For example, if you want to store your data in MongoDB, you can use MongoDB Atlas — a fully managed database service in the cloud. We do not explain here, how…


Preface

Kubernetes has already become a common technology for everyone who has the challenge to ship and run any applications in the cloud. And every cloud provider give us tools like an api, to setup the infrastructure as easy as possible for us, DevOps engineers. We just start a kubernetes service, wait a couple of seconds and et voilà! It has an external IP, which we can assign a domain to access the endpoint as if no magic happened. Have you tried the same in your local network? If the answer is no, give it a try. Just to understand that…


Preface

In a perfect world every written service will work smooth, your test coverage is on top and there are no bugs in the implementation of your API. But we all know, that we can’t achieve this world, sadly. It’s not unusual that there’s a bug and you have to debug this problem in a production environment. We have faced this problem with our go services in our Kubernetes cluster, and we want to show you how it’s possible to remote debug a go service in a Kubernetes cluster.

Software Prerequisites

For this case we create a kubernetes cluster running locally on our…

Dmitry Chaykin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store