pachamamita.de - In care of nature, simplicity and code
open-menu closeme
Home
Coding
Best Practices
Contact
Data Protection
mail mastodon gitlab rss
  • Multi-Tenant OpenID Connect Bearer Token Authentication with Quarkus

    calendar Jan 7, 2024 · 10 min read · Quarkus OIDC Authentication Authorization AWS Java  ·
    copy
    Multi-Tenant OpenID Connect Bearer Token Authentication with Quarkus

    Quarkus offers comprehensive support for authentication and authorization utilizing Open ID Connect (OIDC). This real-life example shows how a REST API for two frontends with tenants based on AWS Cognito and Keycloak can be secured using OIDC bearer authentication.


    Read Article
  • Asynchronously Calling REST Services in a Synchronous Quarkus Application

    calendar Dec 2, 2023 · 7 min read · Quarkus Mutiny RESTEasy Reactive Java  ·
    copy
    Asynchronously Calling REST Services in a Synchronous Quarkus Application

    A cool feature of Quarkus is that you can mix both synchronous and asynchronous paradigms and don't have to commit to just one. This can be very useful, for example, if you want to parallelize REST calls to third-party APIs in an otherwise synchronous backend.


    Read Article
  • Letting Quarkus Inject All Beans of a Type with the @All Annotation

    calendar Nov 12, 2023 · 3 min read · Quarkus Java  ·
    copy
    Letting Quarkus Inject All Beans of a Type with the @All Annotation

    With the @All annotation Quarkus offers an easy way to inject all available beans of a type. This example shows how the annotation can be utilized to elegantly avoid conditional statements and delegate the work of keeping track of all currently existing implementations of an interface to the CDI container.


    Read Article
  • Deploying CloudFront Access Log Analysis Infrastructure with CDK 2

    calendar Nov 2, 2023 · 5 min read · AWS CDK CloudFront Glue Athena Typescript Web  ·
    copy

    Enabling CloudFront access logs is a basic way of monitoring incoming requests. However, CloudFront writes these logs as gzip packed files into S3, which makes a convenient analysis difficult. AWS Glue together with AWS Athena allows the use of SQL to query these logs and this post explains the steps to deploy the necessary infrastructure with CDK 2.


    Read Article
  • Take Code Documentation Seriously

    calendar Sep 10, 2023 · 4 min read · Docs Java  ·
    copy

    Writing code that others can understand without hassle is an art. An important issue in this challenge is proper documentation of the code - not overly extensive, but also not the often encountered zero-documentation-way.


    Read Article
  • Use @DisplayName and @Nested to Document and Structure JUnit Tests

    calendar Jun 18, 2023 · 4 min read · Java JUnit Testing Docs  ·
    copy

    JUnit offers great possibilities to write good tests with ease. Expressing the intention of tests and test classes with the @DisplayName annotation and structuring them with @Nested is a good practice, causes only minor effort and helps reducing the pain of adapting tests when the code under test has changed.


    Read Article
  • Keeping Stateful and Stateless Resources in Separate Stacks in CDK

    calendar Feb 21, 2023 · 3 min read · AWS CDK  ·
    copy

    When deploying infrastructure as code with CDK it is a good practice to keep stateful resources like databases separated from stateless resources in different stacks to avoid accidental data loss and other problems.


    Read Article
  • Unexpected SocketExceptions after AWS Lambda Execution

    calendar Feb 7, 2023 · 5 min read · Quarkus Java RESTEasy Reactive AWS Lambda  ·
    copy
    Unexpected SocketExceptions after AWS Lambda Execution

    Having migrated to RESTEasy Reactive sporadic SocketExceptions occurred in one of our AWS Lambdas several minutes after the actual Lambda execution. This article describes one possible solution for this problem by disabling the connection pool for the used REST client with the help of custom HttpClientOptions but of course with the price of a lower overall performance.


    Read Article
  • Notes on the Migration from Quarkus RESTEasy Classic to RESTEasy Reactive

    calendar Jan 30, 2023 · 8 min read · Quarkus Java RESTEasy Reactive  ·
    copy
    Notes on the Migration from Quarkus RESTEasy Classic to RESTEasy Reactive

    Until Quarkus 2.8 RESTEasy Classic was the default JAX-RS implementation when using REST in a Quarkus project. Then they switched over to RESTEasy Reactive, which is the reactive version but also contains the classic blocking flavor. This post summarizes my experiences with the migration to RESTEasy Reactive.


    Read Article

Gerhard Flothow photo

Gerhard Flothow

Freelance full stack software developer, wannabe ethical hacker with strong interest in infrastructure, software quality, security, privacy and the beauty of simplicity.
Taking care of Pachamama and its creatures.

"Cuando la sangre de tus venas retorne al mar y el polvo de tus huesos vuelva al suelo, quizás recuerdes que esta tierra no te pertenece a ti, sino que tú perteneces a esta tierra." - proverbio indígena Warming stripes showing the global warming from 1850 until 2022, here used as a separator

Featured Posts

  • Multi-Tenant OpenID Connect Bearer Token Authentication with Quarkus
  • Deploying CloudFront Access Log Analysis Infrastructure with CDK 2
  • Building Docker Images with Kaniko on Kubernetes-based Gitlab Runners

Recent Posts

  • Asynchronously Calling REST Services in a Synchronous Quarkus Application
  • Letting Quarkus Inject All Beans of a Type with the @All Annotation
  • Take Code Documentation Seriously
  • Why Medium-Sized Mastodon Instances Make Most Sense as of Today
  • Use @DisplayName and @Nested to Document and Structure JUnit Tests
  • Why I do not Recommend Google as Search Engine - A Little Experiment
  • Keeping Stateful and Stateless Resources in Separate Stacks in CDK
  • Unexpected SocketExceptions after AWS Lambda Execution

Categories

CODING 9 INFRASTRUCTURE 4 BEST-PRACTICES 3 ENVIRONMENT 1 PRIVACY 1

Tags

JAVA 7 QUARKUS 5 AWS 4 REACTIVE 3 RESTEASY 3 CDK 2 DOCS 2 WEB 2 ATHENA 1 AUTHENTICATION 1 AUTHORIZATION 1 BIG-TECH 1 CLOUDFRONT 1 DOCKER 1
All Tags
ATHENA1 AUTHENTICATION1 AUTHORIZATION1 AWS4 BIG-TECH1 CDK2 CLOUDFRONT1 DOCKER1 DOCS2 FEDIVERSE1 GITLAB1 GLUE1 JAVA7 JUNIT1 KUBERNETES1 LAMBDA1 MASTODON1 MUTINY1 OIDC1 QUARKUS5 REACTIVE3 RESTEASY3 SURVEILLANCE-CAPITALISM1 TESTING1 TYPESCRIPT1 WEB2
[A~Z][0~9]
pachamamita.de - In care of nature, simplicity and code

© 2023- Gerhard Flothow. Unless otherwise stated, all source code is licensed under GNU AGPL v3 and all post content is licensed under CC BY-SA 4.0.
Made with ❤ on Pachamama. Powered by Hugo.

to-top