GeekWare - Daniel Pecos Martínez

Tutorial

Exploring Concurrency in Java - From Threads to Structured Concurrency

Exploring Concurrency in Java - From Threads to Structured Concurrency

1. Starting with the Basics — The Raw Thread 2. Thread Pools with ExecutorService 3. Asynchronous Pipelines with CompletableFuture 4. Structured Concurrency — Cleanly Coordinating Subtasks Using Virtual Threads in Spring Boot Configuring Virtual Threads Lessons Learned Conclusion Java’s journey in concurrency has been long and fascinating — evolving from manually managed threads to lightweight virtual threads and structured concurrency in the modern era. In this post, we’ll explore several approaches to running tasks concurrently, showing how each step improves simplicity, readability, and scalability.
Attending a PGP / GnuPG signing party

Attending a PGP / GnuPG signing party

In today’s digital world, ensuring the authenticity and security of our communications is more important than ever. PGP (Pretty Good Privacy) and GnuPG (GNU Privacy Guard) are tools designed to provide secure encryption and decryption of data, playing a crucial role in protecting privacy and information. A key component of this security model is the “web of trust,” an informal network of users who verify and sign each other’s public keys. By hosting a PGP/GnuPG signing party, individuals can expand their web of trust, increasing the reliability of key verification and enhancing overall communication security. This guide offers practical steps, complete with GnuPG command examples, to help you host a successful signing party.
How to rotate your OpenPGP / GnuPG keys

How to rotate your OpenPGP / GnuPG keys

It’s been a while (well, years) since I rotated my GPG keys, and to be honest, now that I know better how to handle a GPG key pair in order to avoid master key rotation, I think it’s the time to get a new pair. This tutorial will show you the steps I followed with explanations on what we are achieving in every step.
REST API with Node.js and Swagger

REST API with Node.js and Swagger

In this tutorial I’ll show how to piece together the required NPM modules to build a REST API in Node.js with proper Swagger documentation. We’re going to use Express as the HTTP framework, and the Swagger documentation will be written as inline comments within the code, as close as possible to the handling endpoint or models that will implement the contract, so it will be harder for them to eventually diverge.