Bash Tips #5 – Parallelism using xargs

Running things in parallel in bash scripts may seem like a difficult task, but thanks to great utility programs that are available out-of-the-box on most GNU/Linux distributions it is not. In this brief article, I would like to focus on using xargs to run operations in parallel in a convenient manner. This is an approach … Continue reading "Bash Tips #5 – Parallelism using xargs"

Read More

Bash Tips #4 – Error Handling in Bash Scripts

There is no single way to handle unexpected behavior in our bash scripts. By default, bash simply ignores any failed calls and proceeds with the execution. Therefore we have to explicitly implement behavior that would help us handle such events. I would like to present a few simple techniques that can be used in these … Continue reading "Bash Tips #4 – Error Handling in Bash Scripts"

Read More

Bash Tips #3 – Templating in Bash Scripts

Software deployment systems such as Ansible or Puppet come with a templating engine to help us create and manage configuration files. Such functionality can be also achieved using bash. It might not be as easy to use or feature-rich, but it is a mechanism that can be useful when you cannot or choose not to … Continue reading "Bash Tips #3 – Templating in Bash Scripts"

Read More

Bash Tips #2 – Splitting Shell Scripts to Improve Readability

Codebase grows over time and so do shell scripts. Those usually start small and serve a single purpose, but new features get added, unforeseen situations are handled, and suddenly shell scripts have hundreds of lines, losing readability in the process. From what I have observed when collaborating with other developers, it is in our nature to … Continue reading "Bash Tips #2 – Splitting Shell Scripts to Improve Readability"

Read More

Going native: enabling Specification Argument Resolver for GraalVM

In one of the previous articles, we described the GraalVM native image technology. The main motivation of the previous article was our willingness to evaluate technology in context of usage in our apps in the future. However, there is one additional motivation which stands behind our interest in this topic, the open source project maintained … Continue reading "Going native: enabling Specification Argument Resolver for GraalVM"

Read More

Bash Tips #1 – Logging in Shell Scripts

A visual indication of steps performed by a shell script not only improves the experience of the user of the script, but a well detailed log helps to debug any problems that could occur and to confirm that the script performed the operations correctly. Introducing a proper logging to shell scripts can help with that. … Continue reading "Bash Tips #1 – Logging in Shell Scripts"

Read More

Open-source for the win! Benefits of contributing to OSS

At Tratif we believe that contributing to open-source software has very positive effect on organizations and individual developers. We rely on open-source software in almost every project that we have delivered. This is the foundation of our approach: open and proven solutions of highest quality and the fastest approach to fixing issues, supported by the … Continue reading "Open-source for the win! Benefits of contributing to OSS"

Read More

Spring Tips #2: Layered JARs with Spring Boot 2.3

Sample code referred in this article is available on GitHub. Using Docker containers for deployment of Java applications becomes more and more popular these days. To ship a new version of application you just build a Docker image with new version of JAR file and push it to the repository, so the deployment team can … Continue reading "Spring Tips #2: Layered JARs with Spring Boot 2.3"

Read More

Scaling down microservices

Microservice architecture became very popular in the last years. This approach has a lot of benefits, which are widely praised at conferences. Unfortunately, it is very common to forget about the problems and difficulties we may encounter. Those who know me a little, know that I have always been skeptical of this approach. In this … Continue reading "Scaling down microservices"

Read More