DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

How does AI transform chaos engineering from an experiment into a critical capability? Learn how to effectively operationalize the chaos.

Data quality isn't just a technical issue: It impacts an organization's compliance, operational efficiency, and customer satisfaction.

Are you a front-end or full-stack developer frustrated by front-end distractions? Learn to move forward with tooling and clear boundaries.

Developer Experience: Demand to support engineering teams has risen, and there is a shift from traditional DevOps to workflow improvements.

Core Badge
Avatar

Marcos Barbero

DZone Core CORE

Lead Solutions Architect at LeasePlan

Zaandam, NL

Joined Mar 2018

http://blog.marcosbarbero.com

About

twitter: @marcosgbarbero

Stats

Reputation: 443
Pageviews: 447.4K
Articles: 9
Comments: 11
  • Articles
  • Comments

Articles

article thumbnail
Password Encoder Migration With Spring Security 5
Learn more about implementing the password encoder migration with Spring Security 5.
February 7, 2019
· 36,509 Views · 11 Likes
article thumbnail
Multiple MongoDB Connectors With Spring Boot
Let's take a look at a tutorial that explains how to build an application that connects to multiple MongoDBs. Also look at creating the data model and repositories.
October 3, 2018
· 68,003 Views · 3 Likes
article thumbnail
Graceful Shutdown Spring Boot Applications
Want to find out how to gracefully shutdown your Spring Boot apps? Click here to learn more about shutting down Spring Boot apps and installing newer versions.
Updated July 10, 2018
· 85,547 Views · 34 Likes
article thumbnail
Set up Multiple DataSources With Spring Boot and Spring Data in PCF
This tutorial will guide you in the process to setup a Spring Data application to access multiple SQL services in PCF.
June 27, 2018
· 109,187 Views · 6 Likes
article thumbnail
Optional Dependency Injection Using Spring
Want to learn more about optional dependencies? Click to read more about how to optionally inject dependencies within Spring apps.
Updated June 26, 2018
· 72,823 Views · 13 Likes
article thumbnail
Integrating Vault with Spring Cloud Config Server
This guide walks through the process of creating a central configuration management for microservices using Spring Cloud Config integrating with HashiCorp Vault.
June 20, 2018
· 20,108 Views · 4 Likes
article thumbnail
User Impersonation With Spring Security
This article takes you through the process of creating a user impersonation protocol for super/admin users with Spring Security.
June 18, 2018
· 15,769 Views · 2 Likes
article thumbnail
Adding Rate Limiting for Spring Cloud Netflix Zuul
Take a look at supported rate limiters and how to implement them for Spring Cloud Netflix Zuul API gateway for microservices.
June 13, 2018
· 18,348 Views · 6 Likes
article thumbnail
HA and Zone Affinity With Spring Cloud Netflix Eureka
This microservices tutorial will teach you how to set up zone affinity with Spring Cloud Netflix Eureka.
March 13, 2018
· 12,074 Views · 5 Likes

Comments

HA and Zone Affinity With Spring Cloud Netflix Eureka

Mar 21, 2020 · Marcos Barbero

It depends on your use-case, as I'm not familiar with your application I can't recommend anything. I'm sorry.

HA and Zone Affinity With Spring Cloud Netflix Eureka

Mar 21, 2020 · Marcos Barbero

I'm not sure if I completely understand what you're asking, but I'll do my best to answer.

If you are talking about actual HTTP Session that won't work, this strategy mentioned in this article is purely for stateless applications where you do not need to manage sessions but instead manage the dispatch of a request to the downstream services. The state is stored in the token.

HA and Zone Affinity With Spring Cloud Netflix Eureka

Mar 18, 2020 · Marcos Barbero

The idea is to deploy it not only in different machines but in different regions in the cloud. The article only shows it all deployed in the same machine to make it easier.

Password Encoder Migration With Spring Security 5

Feb 15, 2019 · Lindsay Burk

That's indeed a good idea, thanks for the heads up!

Multiple MongoDB Connectors With Spring Boot

Feb 15, 2019 · Lauren Forbes

Thanks for the heads up! You are correct, with your input the code will be simplier.

Set up Multiple DataSources With Spring Boot and Spring Data in PCF

Nov 21, 2018 · Marcos Barbero

Hi Kishan, sorry for the long delay, I was working abroad and missed your message.

Are you using spring-boot? It seems you have some missing dependency or auto configuration in your project.

Graceful Shutdown Spring Boot Applications

Jul 03, 2018 · Lindsay Burk

Hello Giuseppe, indeed it's quite useful and it would be nice to be present there.
However, it's not easy to make it an out of the box implementation.

If you follow my original blog post, you can find more information about it in the Footnote section.

Graceful Shutdown Spring Boot Applications

Jul 02, 2018 · Lindsay Burk

Hello Piotr, thanks for the comment.

It's not entirely true, what the shutdown endpoint does is basically to close the application context, if you use the same example as the one given in this article you will end up with the following response:


curl -i localhost:8080/long-process
curl: (52) Empty reply from server


It just kills the context instead of keep processing the current requests.

Optional Dependency Injection Using Spring

Jun 26, 2018 · Marcos Barbero

Fair point. I'll try to work on the Optional#isPresent example and modify it.

Apart from that, I don't believe I'll touch anything otherwise it would just kill the purpose of this article, that simply shows the options to inject an optional dependency using Spring Framework.

Optional Dependency Injection Using Spring

Jun 26, 2018 · Marcos Barbero

Thanks for your comment Robert, let's walk through it.

1. I do agree with your point and Optional shouldn't be used as a parameter, however, if you are using Constructor Injection that's one way to go to make it optional, otherwise you need to use field injection and mark with required=false.

2. It's just an example about the injection, not really about how to use the Java Optional.

3. I do agree with you on that, but again, I'm showing the available option using Spring, if you are writing a Spring Boot Auto Config and you have an optional parameter, then maybe, you can rely on the DI framework.


HA and Zone Affinity With Spring Cloud Netflix Eureka

Mar 14, 2018 · Marcos Barbero

Thanks Rosa Bella, I really appreciate all the support.
If there's something else you wish to read don't hesitate to tell me.

User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: