gRPC transport and channel providers

Let’s discuss some details around that how gRPC manages transport providers. Remember, that we have two closely related concepts in gRPC: If you didn’t familiar with NameResolvers, I strongly encourage you to peruse previous part of our narrative here: https://mchesnavsky.tech/name-resolution-providers. This article will be about the latter. Alright, we should elaborate, that a gRPC channel […]

READ MORE

gRPC name resolution providers

We have something special today. It all started with that I updated grpc-java version from 1.43.2 to 1.60.0. Alright, I just updated dependency and anticipated it working. However, I run into exception on ManagedChannel build at the client side: Exception I got looks like this: Another modifications: If you’re looking for the simplest & quickest […]

READ MORE

How to run Linux x86_64 binary on ARM-based Mac M1

Suppose you want to: Honestly, I don’t know, why this option is never mentioned in the internet. We need just to create an empty Docker container (based on Linux image), mount the local directory with your binary and just run it! No QEMU, no Parallels, no RosettaVM or other stuff needed. Just follow these steps. […]

READ MORE

How to add URL cert to JKS

Let’s imagine that you need to download a certificate from a website / service / endpoint and put it in the trusted certificates store (JKS or cacerts). To do this, you need to fill in the parameters SERVER_URL, ALIAS_NAME, CERT_NAME and run the script: As a result, an trusted jks storage will be created with […]

READ MORE

Keytab encryption types list

Let’s imagine that we needed to determine what principles and what encryption types exist in a certain keytab. To do this, we will use the ktutil utility: After we have entered the CLI of this utility, we type the following commands: Something like this will be displayed:

READ MORE

Force kill the process by name Linux

Suppose that you need to force kill a process by name or parameters in Linux. You can do it using this bash command: Let’s analyze this set of the commands: Execute ps ax. This command will list the processes on the system. Next, we find in this list those processes that have the text in […]

READ MORE

Viewing connections on a Linux port

Sometimes you might want to see the active connections on a specific port, rather than just the status of the port. This can be done using netstat: Something like this will be output (for example for port 19356): Lines containing ESTABLISHED are active connections on the specified port. In our case, there are two of them.

READ MORE

How to find out what is taking up disk space in Linux

Sometimes disk space suddenly runs out, and you need to quickly identify the cause. Let’s find the problematic partition using the command: Output example: We are looking partitions, which 95% full or more. Use the /cd command to navigate to the folder from the corresponding “Mounted on” column. In our case it is /data folder. […]

READ MORE