Salil Wadnerkar

Ranch Hand
+ Follow
since May 28, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Salil Wadnerkar

Thank you, Khalid and Vasily. I will plan my schedule accordingly.
Could you offer a rough estimate on how many months would it take to prepare for the OCP developer exam using the book?
Hi Paul,

Welcome to the ranch. I am planning on taking the certification exam next year. Do you have explanations for the answers, or do you just list the right answers?

Thank you,
Salil
The user of the thread pool should not be concerned about the inner workings of the thread pool, such as whether the thread pool is using all the threads or not. It is also an anti-pattern for the thread pool to block the submitting thread. You expect that ".getNextTransaction" should be called only after the current transaction is complete. This is specific to your logic, not thread pool logic. So, you should add that expectation in your code like this:

Hi Howard Hyde,

Welcome to the forum! I didn't see OAuth, either client credentials or Authorization flow, being mentioned.
Also, I was interested in SSO applications implemented using SAML. Do you cover these topic in the book?

Thank you,
Salil

8 months ago
I have issues identifying the underlying big systematic issues in the organization and that prevents me from becoming a really good architect.
What would you suggest to build this skill?
10 months ago
You already identified the problem to be threads adding the name to the local map, instead of the concurrent hash map. Since the concurrent hash map is never updated, it will be always empty.
When I try to use functional constructs in Java like streams, one of the main problems I face is checked exceptions, and then either I have to use Optional which returns empty upon an exception, and need to construct a custom tuple - an Either type that returns the caught exception as the left field, or the actual value as the right value.
What is your recommendation of using functional constructs in Java?
I think the short answer is the subclasses which inherit from the abstract class can call these methods and also the abstract constructor.
2 years ago
I am Java 8 certified. What are the pitfalls I should watch out for while preparing for Java 17 certification?
A few patterns which are not that common, but would add immense benefit?
And which patterns give the most bang for the buck, as they say?
You should check the size of the messages only after acquiring the lock.
Basically, your while loop should be inside the "critical section".
Then your waiting condition in the SessionProducer becomes:

Executor service itself does not add much overhead to execution to threads. It just uses some synchronization mechanisms like semaphores to communicate to the threads. So, if you are facing some issues with the load, the problem lies somewhere else.