# Paweł Chudzik

Recent content on tech\_gibberish

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How to setup remote docker host

DevFeed: [How to setup remote docker host](<https://devfeed.tech/articles/how-to-setup-remote-docker-host-27332.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202209/remote-docker/>)

Published: 2022-09-26T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [Image](<https://devfeed.tech/topics/image.md>), [docker images](<https://devfeed.tech/topics/docker-images.md>), [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [x86](<https://devfeed.tech/topics/x86.md>)

Tags: [arm](<https://devfeed.tech/tags/arm.md>), [aws](<https://devfeed.tech/tags/aws.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-images](<https://devfeed.tech/tags/docker-images.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [integration-test](<https://devfeed.tech/tags/integration-test.md>), [linux](<https://devfeed.tech/tags/linux.md>), [remote](<https://devfeed.tech/tags/remote.md>), [tls](<https://devfeed.tech/tags/tls.md>), [x86](<https://devfeed.tech/tags/x86.md>)

### AI overview

This tutorial explains how to set up a remote Docker host for integration tests when required ARM images are unavailable. It uses a Linux x86_64 AWS EC2 machine, configures TLS access to the Docker daemon, and connects a local Docker client to the remote host.

### Source excerpt

Not all docker images are available for ARM architecture (hopefully this will improve over time). Right now I'm working on a project where images for ARM are not available. Emulation works ok (but slow) most of the time. Lately, I stumbled upon an interesting performance/startup issue when running amd64-based containers using testcontainers in an integration test. Read more

## Multiple GIT identities

DevFeed: [Multiple GIT identities](<https://devfeed.tech/articles/multiple-git-identities-27331.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202205/git-identities/>)

Published: 2022-05-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [GitLab](<https://devfeed.tech/topics/gitlab.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [email](<https://devfeed.tech/tags/email.md>), [gerrit](<https://devfeed.tech/tags/gerrit.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [go](<https://devfeed.tech/tags/go.md>), [ssh](<https://devfeed.tech/tags/ssh.md>)

### AI overview

A tutorial on configuring multiple Git identities for separate work and personal GitLab accounts. It explains using separate SSH keys and SSH host configuration to select the appropriate identity, with notes that the approach also works with GitHub and other Git services.

### Source excerpt

I have two GitLab accounts - "work account" and "personal account". One is for my professional work, it is registered to my work email. The second account is for my private/learning projects registered with my private email address. I want to keep those things separate and use two different identities when working with git. Lately, I've bought a new computer and had to set up this again. Read more

## Gson failure in end-to-end tests

DevFeed: [Gson failure in end-to-end tests](<https://devfeed.tech/articles/gson-failure-in-end-to-end-tests-27330.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202201/gson-fail/>)

Published: 2022-01-23T00:00:00Z

Content type: article

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Gson](<https://devfeed.tech/topics/gson.md>), [Java](<https://devfeed.tech/topics/java.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Jackson](<https://devfeed.tech/topics/jackson.md>)

Tags: [e2e](<https://devfeed.tech/tags/e2e.md>), [enum](<https://devfeed.tech/tags/enum.md>), [gson](<https://devfeed.tech/tags/gson.md>), [jackson](<https://devfeed.tech/tags/jackson.md>), [java](<https://devfeed.tech/tags/java.md>), [json](<https://devfeed.tech/tags/json.md>), [tests](<https://devfeed.tech/tags/tests.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

This article explains that Gson can silently ignore JSON deserialization problems, such as an unknown enum value, allowing end-to-end tests to pass even when an API contract is broken. It contrasts this behavior with Jackson and describes migrating tests from Gson to Jackson.

### Source excerpt

Using Gson in your e2e tests might result in tests passing even when contract is broken. Gson is quite imprecise when it comes to deserializing objects from json. Is there any difference between an enum and a string? Is there any difference between s string and a number? Using Java you might answer: sure there is. Even when talking about JSON you'll answer: yeah there is a difference. But for GSON? Meh whatever. Read more

## Synchronous communication - circuit breaker and fallback

DevFeed: [Synchronous communication - circuit breaker and fallback](<https://devfeed.tech/articles/synchronous-communication-circuit-breaker-and-fallback-27329.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202005/circuit-breaker/>)

Published: 2020-05-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Development](<https://devfeed.tech/topics/development.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [behavior](<https://devfeed.tech/tags/behavior.md>), [communication](<https://devfeed.tech/tags/communication.md>), [network](<https://devfeed.tech/tags/network.md>), [self-healing](<https://devfeed.tech/tags/self-healing.md>), [services](<https://devfeed.tech/tags/services.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [systems](<https://devfeed.tech/tags/systems.md>)

### AI overview

This tutorial explains the circuit breaker and fallback communication patterns for preventing cascading failures and giving dependent services time to recover. It describes closed, open, and half-open states, then examines implementations from Hystrix and resilience4j using a controllable failing service.

### Source excerpt

The circuit breaker is a communication pattern that helps to avoid cascading failure of the system and gives dependent services time to recover. Along with fallback values defined by the developer, it gives a pretty wide safe net when communication channel is broken. Read more

## Working with OpenAPI contract in multiple files

DevFeed: [Working with OpenAPI contract in multiple files](<https://devfeed.tech/articles/working-with-openapi-contract-in-multiple-files-27327.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202004/open-api-and-external-ref/>)

Published: 2020-04-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [Swagger](<https://devfeed.tech/topics/swagger.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [code](<https://devfeed.tech/tags/code.md>), [download](<https://devfeed.tech/tags/download.md>), [editor](<https://devfeed.tech/tags/editor.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [github-issues](<https://devfeed.tech/tags/github-issues.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [openapi-specification](<https://devfeed.tech/tags/openapi-specification.md>), [swagger](<https://devfeed.tech/tags/swagger.md>)

### AI overview

This tutorial explains how to split a large OpenAPI specification into multiple files and work with external references. It discusses Swagger Editor's limitations, Stoplight Studio, swagger-ui-watcher, and a workflow for organizing a pet store API across separate files.

### Source excerpt

Real-life OpenAPI specification files tend to go really big really fast. In this post, I'll try to explore how we can split single specification file into multiple files and don't get crazy while scrolling up and down like a mad man. Read more

## Collection like objects in python

DevFeed: [Collection like objects in python](<https://devfeed.tech/articles/collection-like-objects-in-python-27328.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202004/python-and-collection-like-objects/>)

Published: 2020-04-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [behavior](<https://devfeed.tech/tags/behavior.md>), [class](<https://devfeed.tech/tags/class.md>), [collections](<https://devfeed.tech/tags/collections.md>), [dsl](<https://devfeed.tech/tags/dsl.md>), [functional](<https://devfeed.tech/tags/functional.md>), [list](<https://devfeed.tech/tags/list.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [python](<https://devfeed.tech/tags/python.md>), [set](<https://devfeed.tech/tags/set.md>), [slices](<https://devfeed.tech/tags/slices.md>)

### AI overview

A tutorial on implementing Python collection-like objects using the collections protocol. It discusses slices and methods such as __getitem__, __setitem__, __delitem__, __iter__, __contains__, and __missing__, including how they support collection behavior and domain-specific language extensions.

### Source excerpt

Collections are an important part of every programming language. In python, there is a couple of built-in collections like list, set, dictionary but I'm not going to dig into them now. In this post, I'll explore what it takes to implement collection like objects on your own using collections protocol. Read more

## Object oriented programming in Python

DevFeed: [Object oriented programming in Python](<https://devfeed.tech/articles/object-oriented-programming-in-python-27325.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202003/object-oriented-python/>)

Published: 2020-03-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [object](<https://devfeed.tech/tags/object.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

A practical reference to object-oriented programming in Python, covering duck typing, object creation and initialization, finalization, and object representation methods such as __repr__, __str__, and __format__.

### Source excerpt

Working with python is fun (as with any language you get hooked up on). You can write simple scripts with it, or complex programs and utilities. The most surprising thing for people coming from the java world might be that in this "scripting" language everything is an object. In this post, I'll explore basic protocols available for user-defined objects. Read more

## Synchronous communication - connection settings and retries

DevFeed: [Synchronous communication - connection settings and retries](<https://devfeed.tech/articles/synchronous-communication-connection-settings-and-retries-27326.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202003/retries/>)

Published: 2020-03-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [HTTP](<https://devfeed.tech/topics/http.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [errors](<https://devfeed.tech/tags/errors.md>), [http](<https://devfeed.tech/tags/http.md>), [network](<https://devfeed.tech/tags/network.md>), [request](<https://devfeed.tech/tags/request.md>), [retry](<https://devfeed.tech/tags/retry.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

This tutorial explains how to configure connection settings and retries for synchronous communication with Feign. It covers reviewing default connection and read timeouts, choosing retry counts based on service response times and SLAs, adding delays between attempts, and retrying selected errors such as HTTP 503 without contributing to cascading failures.

### Source excerpt

The simplest possible strategy that can help with communication issues is retrying to execute the request again. Maybe it was just a network glitch and it will work just fine when you try to call it again. Introducing retries is a relatively simple step that can improve the stability of your service. But before adding retries check if you'll not be waiting for 2 minutes for establishing the connection... Read more

## Synchronous services communication

DevFeed: [Synchronous services communication](<https://devfeed.tech/articles/synchronous-services-communication-27324.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202002/reliability/>)

Published: 2020-02-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [systems](<https://devfeed.tech/topics/systems.md>), [Availability](<https://devfeed.tech/topics/availability.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [programming](<https://devfeed.tech/tags/programming.md>), [systems](<https://devfeed.tech/tags/systems.md>)

### AI overview

An examination of how synchronous communication between services affects overall reliability. It explains how dependencies such as databases and other internal or external services compound failure probabilities, and discusses common sources of failure.

### Source excerpt

At work, we are splitting the monolithic application into smaller services. From time to time we have some challenges in doing it the right way. Lately, most of the splitting is focused on cutting out frontends to be outside of the monolith. It gives solid results as we are getting logic and business rules in one place. The downside is that most of the communication has to be synchronous which creates interesting problems to solve. Read more

## How I Built and Manage This Blog with Hugo, Markdown, Docker, and Automation

DevFeed: [How I Built and Manage This Blog with Hugo, Markdown, Docker, and Automation](<https://devfeed.tech/articles/how-this-blog-is-build-27323.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202002/blog-process/>)

Published: 2020-02-14T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Hugo](<https://devfeed.tech/topics/hugo.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Continuous Deployment (CD)](<https://devfeed.tech/topics/continuous-deployment.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [continuous-deployment](<https://devfeed.tech/tags/continuous-deployment.md>), [docker](<https://devfeed.tech/tags/docker.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [markdown](<https://devfeed.tech/tags/markdown.md>)

### AI overview

The author describes how their blog evolved over three years, covering Hugo, Markdown and Asciidoc, theme customization, Docker-based local development, scripts, and continuous deployment possibilities.

### Source excerpt

In this post, I'd like to show you how I've started with writing this blog. How the process evolved during 3 years of writing. How I've finally managed to set up everything in a way that works for me now. If you don't blog yet this might help you out with technical details on how you can start easily. If you already have a blog maybe you'll be able to pick up some ideas. Read more

## Log4j 2: A High-Level Overview of Logging Features

DevFeed: [Log4j 2: A High-Level Overview of Logging Features](<https://devfeed.tech/articles/logv4j-v2-27321.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202001/log4j2/>)

Published: 2020-01-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [log4j](<https://devfeed.tech/topics/log4j.md>), [Logging](<https://devfeed.tech/topics/logging.md>), [Library](<https://devfeed.tech/topics/library.md>), [audit](<https://devfeed.tech/topics/audit.md>), [context](<https://devfeed.tech/topics/context.md>), [tracing](<https://devfeed.tech/topics/tracing.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [audit](<https://devfeed.tech/tags/audit.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [context](<https://devfeed.tech/tags/context.md>), [library](<https://devfeed.tech/tags/library.md>), [log4j](<https://devfeed.tech/tags/log4j.md>), [logging](<https://devfeed.tech/tags/logging.md>), [tracing](<https://devfeed.tech/tags/tracing.md>)

### AI overview

A high-level overview of Log4j 2 features, including structured Message objects, event logging for audits, ThreadContext correlation IDs, flow tracing, markers, and configurable appenders.

### Source excerpt

When I've first learned that there is something more than printing things to console log4j was state of the art solution. Then SLF4J joined the party and improved where log4j was lacking. The new version of LOG4J is available for some time already and I didn't have a chance to look at what if offers. Let's examine what's possible with the second version of a very well known logging library. Read more

## Toggling Spring Cache at Runtime with a Custom Cache Manager

DevFeed: [Toggling Spring Cache at Runtime with a Custom Cache Manager](<https://devfeed.tech/articles/toggable-cache-27322.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202001/toggable-cache/>)

Published: 2020-01-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [caching](<https://devfeed.tech/tags/caching.md>), [code](<https://devfeed.tech/tags/code.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [redis](<https://devfeed.tech/tags/redis.md>)

### AI overview

This proof-of-concept article describes how to enable or disable Spring caching at runtime using a custom cache manager. The manager delegates to Redis when caching is enabled and bypasses it when disabled, allowing behavior to be tested against production-like traffic and metrics.

### Source excerpt

Sometimes it's good to have an option to try something out on the live environment. Checking things against production like traffic is the most reliable way to gather real-life metrics. In this post, I'm going to try and set up spring cache with a toggle. It'll be possible to turn it off and on during application runtime possibly using external toggle service. Read more

## Practical Skills and Tools That Help Software Developers Work Effectively

DevFeed: [Practical Skills and Tools That Help Software Developers Work Effectively](<https://devfeed.tech/articles/skills-and-tools-that-will-not-get-you-a-new-job-27320.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201912/skills-and-tools/>)

Published: 2019-12-27T00:00:00Z

Content type: article

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Script](<https://devfeed.tech/topics/script.md>), [DevOps](<https://devfeed.tech/topics/devops.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Git](<https://devfeed.tech/topics/git.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [kubectl](<https://devfeed.tech/topics/kubectl.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Maven](<https://devfeed.tech/topics/maven.md>), [ssh](<https://devfeed.tech/topics/ssh.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [cli](<https://devfeed.tech/tags/cli.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [data-analysis](<https://devfeed.tech/tags/data-analysis.md>), [devops](<https://devfeed.tech/tags/devops.md>), [docker](<https://devfeed.tech/tags/docker.md>), [git](<https://devfeed.tech/tags/git.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [kubectl](<https://devfeed.tech/tags/kubectl.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [maven](<https://devfeed.tech/tags/maven.md>), [programming](<https://devfeed.tech/tags/programming.md>), [script](<https://devfeed.tech/tags/script.md>), [ssh](<https://devfeed.tech/tags/ssh.md>)

### AI overview

This article discusses practical skills and tools that shape how software developers work, even when they are not emphasized in job interviews. It recommends command-line fluency, shell utilities, small automation scripts, spreadsheets for data analysis, pragmatic experimentation, and learning from DevOps and QA perspectives.

### Source excerpt

On almost every job interview there are questions about frameworks, programming principles, maybe some coding or whiteboard architecting. On the other side, there is the way you work. Tools and skills you use on a daily basis which define how you work. No one really asks about those things but I find them quite important. Read more

## Microservices are hard

DevFeed: [Microservices are hard](<https://devfeed.tech/articles/microservices-are-hard-27319.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201912/microservices-are-hard/>)

Published: 2019-12-12T00:00:00Z

Content type: article

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Microservices](<https://devfeed.tech/topics/microservices.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [database](<https://devfeed.tech/tags/database.md>), [http](<https://devfeed.tech/tags/http.md>), [implement](<https://devfeed.tech/tags/implement.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [migration](<https://devfeed.tech/tags/migration.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [services](<https://devfeed.tech/tags/services.md>)

### AI overview

The article describes the difficulties of gradually migrating a monolithic application toward microservices and a service-oriented architecture. It presents an interim report-generation flow in which the monolith and a new service exchange data over HTTP while data remains split across their databases.

### Source excerpt

At work, we are slowly breaking down the monolithic application into smaller manageable services. Some time ago we had a very interesting issue which proved that microservices are hard to implement. It's especially true if you are not there yet but somewhere in the middle. When you need to introduce intermediate solutions which will enable you to work further on the migration to service oriented architecture. Read more

## Use replica database for read-only transactions

DevFeed: [Use replica database for read-only transactions](<https://devfeed.tech/articles/use-replica-database-for-read-only-transactions-27317.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201911/read-from-replica/>)

Published: 2019-11-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Transactions](<https://devfeed.tech/topics/transactions.md>), [Spring Boot](<https://devfeed.tech/topics/spring-boot.md>), [MariaDB](<https://devfeed.tech/topics/mariadb.md>), [Replication](<https://devfeed.tech/topics/replication.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [docker-compose](<https://devfeed.tech/tags/docker-compose.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [replication](<https://devfeed.tech/tags/replication.md>), [spring-boot](<https://devfeed.tech/tags/spring-boot.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

This tutorial shows how to configure a Spring Boot application to route read-only transactions to a replica database while continuing to write data to the master. It describes a setup using MariaDB instances, replication, Docker Compose, and AWS RDS, while noting that the example replication configuration is intended for testing rather than production.

### Source excerpt

Some time ago we had a problem with performance caused by generating big reports for users. During one of the firehouse meetings, there was an idea to generate reports from the replica database. We've solved the issue differently but the idea got me interested. In this post, I'll configure spring-boot based application to use the replica database for all read-only transactions. Read more

## Error handling with @Transactional

DevFeed: [Error handling with @Transactional](<https://devfeed.tech/articles/error-handling-with-transactional-27318.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201911/transactional-errors/>)

Published: 2019-11-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [exception](<https://devfeed.tech/tags/exception.md>), [spring](<https://devfeed.tech/tags/spring.md>), [spring-framework](<https://devfeed.tech/tags/spring-framework.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

This article explains Spring transaction rollback behavior for runtime and checked exceptions, including how explicit rollback configuration affects checked exceptions. It also discusses how Lombok's @SneakyThrows interacts with @Transactional.

### Source excerpt

You probably already know that by default in spring transactions are rolled back only for runtime exceptions. When a checked exception is thrown from your code and you don't explicitly tell spring that it should rollback the transaction then it get's committed. In this post, I'm going to create simple reference material on when transactions are rollback when using Spring and Lombok. Read more

## asciidoc documentation

DevFeed: [asciidoc documentation](<https://devfeed.tech/articles/asciidoc-documentation-27315.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201910/asciidoc/>)

Published: 2019-10-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Documentation](<https://devfeed.tech/topics/documentation.md>), [Development](<https://devfeed.tech/topics/development.md>), [Code](<https://devfeed.tech/topics/code.md>), [Wiki](<https://devfeed.tech/topics/wiki.md>)

Tags: [bitbucket](<https://devfeed.tech/tags/bitbucket.md>), [code](<https://devfeed.tech/tags/code.md>), [development](<https://devfeed.tech/tags/development.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [github](<https://devfeed.tech/tags/github.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [html](<https://devfeed.tech/tags/html.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [repo](<https://devfeed.tech/tags/repo.md>)

### AI overview

This tutorial explores using Asciidoctor for technical documentation stored alongside source code. It explains how repository-based documentation can be kept current, updated by developers, and reviewed with code, while noting that larger documentation projects may benefit from features such as diagrams, source-code inclusion, and HTML or PDF export.

### Source excerpt

One thing that a lot of people hate to do is writing documentation. Usually, it's postponed until development is finished and once it's done there is rarely time to do it properly. If you get past the struggle of writing it down there is always a problem of keeping it up to date. To avoid those pain points I'm going to explore what we can do with Asciidoctor to simplify this problem. Read more

## Awaitility

DevFeed: [Awaitility](<https://devfeed.tech/articles/awaitility-27316.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201910/awaitility/>)

Published: 2019-10-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [async](<https://devfeed.tech/topics/async.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [examples](<https://devfeed.tech/tags/examples.md>), [executorservice](<https://devfeed.tech/tags/executorservice.md>), [library](<https://devfeed.tech/tags/library.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [queue](<https://devfeed.tech/tags/queue.md>), [testing](<https://devfeed.tech/tags/testing.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

This tutorial introduces Awaitility, a small library for testing asynchronous code. It explains how Awaitility can express expectations for multithreaded systems concisely, using a producer-consumer example with a queue.

### Source excerpt

If you are not working with multithreading programming and don't have to test any asynchronous code then this post will probably do you nothing good. But if you have ever struggled with testing some logic running in multiple threads and you don't know Awaitility. A small library helps testing asynchronous code. If you've never heard of it then you should continue reading. Read more

## Answers in mockito

DevFeed: [Answers in mockito](<https://devfeed.tech/articles/answers-in-mockito-27313.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201909/mockito-answers/>)

Published: 2019-09-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Mocking](<https://devfeed.tech/topics/mocking.md>), [Library](<https://devfeed.tech/topics/library.md>), [test](<https://devfeed.tech/topics/test.md>), [legacy](<https://devfeed.tech/topics/legacy.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [Exception](<https://devfeed.tech/topics/exception.md>)

Tags: [developer](<https://devfeed.tech/tags/developer.md>), [exception](<https://devfeed.tech/tags/exception.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [mockito](<https://devfeed.tech/tags/mockito.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

This tutorial explains Mockito stubbing strategies and answers, including default returns, real method calls, null handling, self-returning builders, generated mocks, and deep stubs. It also discusses when these techniques may indicate legacy code or problematic design.

### Source excerpt

Mocking library is an important tool in every developer toolbox. Sometimes you want to do things that at first glance look a bit more complex than returning number 42 from some method. Let's see what stubbing techniques are available in Mockito out of the box and what they offer. Read more

## Hands-on RedisTemplate

DevFeed: [Hands-on RedisTemplate](<https://devfeed.tech/articles/hands-on-redistemplate-27314.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201909/redis-template/>)

Published: 2019-09-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Redis](<https://devfeed.tech/topics/redis.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [API](<https://devfeed.tech/topics/api.md>), [implementation](<https://devfeed.tech/topics/implementation.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cache](<https://devfeed.tech/tags/cache.md>), [caching](<https://devfeed.tech/tags/caching.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [redis](<https://devfeed.tech/tags/redis.md>)

### AI overview

A hands-on tutorial explains how to add item-level caching with Spring's RedisTemplate when the existing cache abstraction cannot invalidate individual values within cached collections. It describes introducing a cache abstraction, writing tests, handling JSON serialization, and implementing the Redis-backed service.

### Source excerpt

We are improving cache in the project Im working on. In the code base I've found a method which accepted a collection of ids and returned collection of objects for those ids. My goal was to add cache on individual values returned by the method. Creation of items was IO heavy and time-consuming operation so removal of cache was not an option. Read more

## ArchUnit

DevFeed: [ArchUnit](<https://devfeed.tech/articles/archunit-27311.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201908/archunit/>)

Published: 2019-08-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Java](<https://devfeed.tech/topics/java.md>), [unit test](<https://devfeed.tech/topics/unit-test.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [java](<https://devfeed.tech/tags/java.md>), [structure](<https://devfeed.tech/tags/structure.md>), [test](<https://devfeed.tech/tags/test.md>), [tests](<https://devfeed.tech/tags/tests.md>), [unit-test](<https://devfeed.tech/tags/unit-test.md>)

### AI overview

This tutorial introduces ArchUnit, a free Java library for testing architecture conventions with standard Java unit test frameworks. It demonstrates checks for test naming conventions, package and class dependencies, and preventing internal classes from appearing in public APIs.

### Source excerpt

In the past, I've implemented couple of tests that aimed to verify naming conventions or some other practices team agreed upon. And presented a way how to ensure they are followed. When I've been writing those I was not aware that there is a library that aims to test architecture conventions - ArchUnit in this post I'll write a simple test case to check what's possible out of the box. Read more

## Using Advent of Code to Practice Python and Algorithm Implementation

DevFeed: [Using Advent of Code to Practice Python and Algorithm Implementation](<https://devfeed.tech/articles/the-kata-27312.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201908/the-kata/>)

Published: 2019-08-13T00:00:00Z

Content type: opinion

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Advent of Code](<https://devfeed.tech/topics/advent-of-code.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Graphs](<https://devfeed.tech/topics/graphs.md>), [Mazes](<https://devfeed.tech/topics/maze.md>)

Tags: [adventofcode](<https://devfeed.tech/tags/adventofcode.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [puzzles](<https://devfeed.tech/tags/puzzles.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

The author describes using Advent of Code puzzles to deepen Python knowledge and practice algorithm implementation. A maze-solving problem provided practice with graph traversal, shortest-path reasoning, and measuring traveled distance.

### Source excerpt

I'm learning python for some time now. I've made myself familiar with the syntax and then started looking into other ways to increase my knowledge about language and learn its quirks. I've found a very nice site that allows me to practice basics and strengthen different kind of muscles that I'm using in my day job - adventofcode. Read more

## Testcontainers

DevFeed: [Testcontainers](<https://devfeed.tech/articles/testcontainers-27310.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201907/testcontainers/>)

Published: 2019-07-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [docker](<https://devfeed.tech/tags/docker.md>), [integration](<https://devfeed.tech/tags/integration.md>), [redis](<https://devfeed.tech/tags/redis.md>), [services](<https://devfeed.tech/tags/services.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

A tutorial on using Testcontainers to run Docker containers for integration tests. It demonstrates testing communication with a live Redis instance without manually preparing infrastructure.

### Source excerpt

Recently I've found a very interesting project which allows to spin up docker containers for test purposes. Writing tests checking integration with external services is not an easy task. With testcontainers library it gets simpler because you can have external service up and running just for your test in a couple of lines of code. Read more

## Spock extensions

DevFeed: [Spock extensions](<https://devfeed.tech/articles/spock-extensions-27309.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201907/spock-extensions/>)

Published: 2019-07-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Framework](<https://devfeed.tech/topics/framework.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Spring Boot](<https://devfeed.tech/topics/spring-boot.md>)

Tags: [extensions](<https://devfeed.tech/tags/extensions.md>), [framework](<https://devfeed.tech/tags/framework.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [spring-boot](<https://devfeed.tech/tags/spring-boot.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

A tutorial on creating a simple annotation-based Spock extension to execute additional logic before tests and change a toggle during test execution. It explains the extension annotation, implementation, interceptors, and lifecycle methods, with Spring Boot integration as context.

### Source excerpt

Recently I had to set up some extra logic to be executed before running tests. I had two options - create yet another abstract class with some behavior or somehow extend Spock and introduce extra logic to be executed just before actual test starts. As we already have enough of abstract classes I decided to try and do the second option. Read more

[Next page](<https://devfeed.tech/sources/pawe-chudzik.md?cursor=WyIyMDE5LTA3LTExVDAwOjAwOjAwKzAwOjAwIiwgIjEyMTVhNTBlLTJjNTItNDUxOC05OTUyLThiMjg4MTZmYjJjZCJd>)