Simulating Lag with Docker Containers
I was building a Grafana dashboard with Docker Compose that would monitor a local service. I wasn't able to figure out if my calculations for the graph were correct because the latency was so low being that it was running in Docker Compose locally. I needed a way to proxy traffic to the service that...
Kafka Connect: JMX JConsole (Docker)
Yes, you absolutely can connect JConsole to Kafka Connect and extract JMX metrics. If you are experiencing problems getting it to work this blog post will get you through it. There are 2 "gotcha's" with getting this to work with Docker/Docker Compose. The KAFKA_JMX_HOSTNAME variable must be set and the correct Java JDK must be...
Debugging Kafka Connect Connectors/SMTs in Java
Are you developing a custom Kafka Connect Connector or Single Message Transform (SMT) and need to debug this? This blog post will give you ideas on how to output information to standard output and how to attach a remote debugger to a custom SMT running in a Docker container. This article can save you...
Kubernetes WordPress with Remote MySQL Access
Deploying WordPress to Azure Kubernetes Service (AKS) was a great exercise for me to learn and improve my Helm and Kubernetes knowledge. Bitnami has a Helm chart for WordPress on AKS.
The most ideal way of doing this is to modify the Helm Charts to include an additional load balancer, but, the purpose of...
.NET Kafka Producers
This multipage post will specifically target the concept of getting data out of a specific system or database and on to the Kafka Event Bus. There are many ways of doing this and some are easier to implement than others. It's important to remember why Kafka is relevant in today's world; Kafka is a real-time event streaming...
Local Development with Azure API Management Gateway
This was rather tricky to figure out so I thought I would share my experience with setting up Visual Studio with a local development subscription of Azure API Management (APIM) Gateway. It turns out that running a local copy of the Azure API Management Gateway is possible through either Docker or Kubernetes. Since...
PostgreSQL for .NET Developers
Venturing into microservice architecture has forced me to become more aware of other technologies that may be more performant, cheaper, and or a better match for that specific need. PostgreSQL ("Postgres") is a relational database that is very comparable to Oracle. It's not that different than MSSQL but has some serious quirks. The more I learn...
Docker: MSSQL Server
Microsoft has created several images for MSSQL Server on Docker Hub. They have support for Windows and Ubuntu containers. It's very easy to customize these images with setup scripts, execute commands, or build a custom image.
Pulling a Ubuntu 2019 SQL Server
docker pull mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-16.04
Pulling a Windows 2019 SQL Server
docker pull mcr.microsoft.com/mssql/server:2019-latest
DockerHub: Microsoft SQL Server
GitHub: Azure Data SQL Samples...
Docker Tips & Tricks
These are some useful random tricks I've learned about Docker over the years.
Getting Shell Access to a Running Container
docker exec -it containername /bin/bash
Remove All Running Containers
This command works by removing all running containers with force. The command "docker ps -aq" returns all running containers and only displays the container ID.
docker rm -f $(docker ps -aq)
Copying Files...
HTTPie in PowerShell
HTTPPie is very easy to use command-line HTTP utility for making requests. It features JSON support, syntax highlighting, persistent sessions, and is capable of downloading files, extension by plugins, and much more. It's easy as pie!
Installation
You will need Python 3 installed and update PIP to the latest version.
pip install -U httpie
https://httpie.org/
Features
Let's look at what this does and...