Two-factor authentication with Google Authenticator (part 1/2)

Hello all! In this post (or better to say in a series of 2 posts) we would talk about using 2 factor authentication with Vertx applications. I’ve already described, how we can enable SMS two-factor authentication in Vertx. Although, in the previous publication, I concentrated on a delivery method itself, and today we gonna dive into the subject of one-time passwords itself. So, we would start with what is an one-time password, how it is used and then would build a first half of the example app – signup part. In the next part we would continue and finish login and validation matters. read more

Using HashiCorp Vault with Vertx to store secrets

Hello! This post continues in some way the topic of how to get configuration in Vertx apps. We’ve observed general principles, and today we would dive into concrete case study – reading configuration from secured Vault storage. We would talk about how to use Vault server and store data in it, and then how to access this configuration within Vertx app. I encourage you to read my previous post to grab an idea about Vertx Config model. Let start! read more

How to get a configuration in Vertx apps with Java

Hi again! I want to talk today about Vertx-Config library, that is the prefered way to get configuration in Vertx apps. It offers abstraction layer for various type of configs – properties files, system vars; as well some more exotic stores, that are available via extensions – Vault, Kubernetes and others. In this post we would observe Vertx Configuration model, and take a look on built-in configuration providers. Later, we would see how to track configuration updates during runtime. read more

Working with money in Java: a quick introduction to JodaMoney library

Hi there! Today we would talk about money. Well, not exactly about how to get more money (although, a good topic), but how to work with money in Java. When we deal with money in Java we usually refer to BigDecimals, also there is a very useful library from the famous Joda project – Joda-Money that simplifies money operations. In this article we would highlight how to install this library in your project, create Money instances, do calculations and what is a difference between Money and BigMoney. Let start! read more

A bit on marker interfaces in Java

Hello again! This time I would like to talk about marker interfaces in Java. Every Java developer has seen them, although not everybody is aware that there is a specific word for this type of interfaces. In this post I would like to focus on following points: what is a marker interface, which built-in marker interfaces do we have and how they are compared with another concept – annotations. read more

Microservicios reactivos con Vert.x

Hola a todos! En este articulo vamos a hablar sobre mi tema mas favorito – microservicios reactivos con Vert.x. Vert.x es un framework para el desarrollo de aplicación orientada sa eventos que se ejecuta en JVM. Y, que es importante, Vert.x es un “polyglot”. En este articulo usamos solamente Java, sin embargo las aplicaciones pueden ser escritas también en Scala, JS, Python, Ruby, Kotlin, Groovy. read more

Start with vertx-junit5 at no time

Hello, world! In this tutorial I would like to talk a bit about vertx-junit5. Don’t confuse it with more known vertx-unit library. This is a JUnit5-specific extension that you could use in order to simplify testing of Vert.x applications. And to make it more JUnit5-native. read more