Author: Sergio Lema
-

Spring Cloud Gateway with OAuth2 Authorization Server
In this article I will create a Spring Cloud Gateway application connected to an OAuth2 Authorization Server. I will use an existing OAuth2 Authorization server and create a Spring Cloud Gateway application from scratch to consume data from a Resource Server.
-

OAuth2 and OpenID Connect
In this article, I will compare the OAuth2 and OpenID Connect authentication protocols. I will implement the OpenID Connect with the Spring Security Authorization Server.
-

Decorators in Python
In this article I will explain what are the Decorators in Python. And I will also show how I create my own Decorator.
-

Python Logging
In this article I will show how to use the Logging library in Python. I will show how to configure the Logging library for many Handlers, Formatters and Filters.
-

Spring Cloud Sleuth & Zipkin
In this article I will show how to trace requests between microservices using Spring Cloud Sleuth and Zipkin. Spring Cloud Sleuth will help me identify the logs from a single request between all the microservices. And Zipkin will show me the elapsed times at the microservices.
-

Spring Security and Roles Authorization
In this article I will explain the difference between Authentication and Authorization. I will also explain how to implement the Authorization pattern with Spring Security. For that, I will use the @PreAuthorize annotation.
-

Spring Batch
In this article I will show how to create a complete Spring Batch project. I will show how to configure a Job and the Steps. I will implement a Step with a reader, processor and Writer. I will implement another Step with a Tasklet.
-

Jinja Templates
In this article, I show how a Flask backend can render and return Jinja templates. I will show how to use variables inside the Jinja templates, blocks and macros.
-

Optimizing Joins with CTE
This week, I faced a problem with the performance of a query in PostgreSQL. I came from a cardinality result of more than 70.000.000 rows with a time response of 3 minutes to only 10 seconds.
-

Python Pre-Commit
In this article I show how to configure pre-commit in a Python project to format and check the code. I will show 4 tools which will run automatically with the Git hooks.
