Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created March 4, 2025 17:12
Show Gist options
  • Save AdamBien/728f7aac35f434b6c0a87d192e61f73d to your computer and use it in GitHub Desktop.
Save AdamBien/728f7aac35f434b6c0a87d192e61f73d to your computer and use it in GitHub Desktop.
133rdAirhacksQ&A.md
@rrjavadev
Copy link

Hi Adam,

I hope you're doing well! I wanted to get your thoughts on good load balancer tools for on-premise applications. I've worked with GSLB in the past, but I’ve found it a bit limited compared to the more feature-rich offerings from major cloud providers.

I’d really appreciate your recommendations or any insights you might have on this.

Thanks in advance!
Roshini Revindranathan

@azdanov
Copy link

azdanov commented Jun 24, 2025

Hey!

I wanted to ask about property vs constructor injection. I noticed that in https://github.com/AdamBien/ebank/blob/165fa400b48d4b3e7f73853e93d2113f3fbb4661/ebank/src/main/java/airhacks/ebank/accounting/boundary/AccountsResource.java#L33 it's injected as a field and everywhere one searches online it's said that it's "bad and don't do it due to it becoming hard to test". Which way is better?


Is there a similar wrapper or a modern approach to using jdbc as in spring with JdbcClient: https://docs.spring.io/spring-framework/docs/6.2.x/javadoc-api/org/springframework/jdbc/core/simple/JdbcClient.html

I found it quite a good alternative to JPA since it has similar ergonomics and ease of use as the JDK 11 HttpClient which replaced HttpURLConnection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment