Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!

Vaibhav Gargs

Ranch Hand
+ Follow
since Sep 08, 2016
Vaibhav likes ...
Java
Cows and Likes
Cows
Total received
2
In last 30 days
0
Total given
0
Likes
Total received
7
Received in last 30 days
0
Total given
95
Given in last 30 days
8
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vaibhav Gargs

There are generally defined set of classes - FE -> Controller > Service > DAO -> DB. Here, we autowire service in controller and dao in service layers. And, by default the scope of beans is singleton only.

Suppose 2 users come in and hit the controllers so won't these singleton beans of service or dao create an issue there? How is it handled in real?
3 days ago
Do we have such capabilities to identify message priorities at the broker level? Does it follow JMS specs?
6 days ago
I am trying to think about design principle to be followed in such scenarios. Suppose we hit the DB and fetched the data corresponding to the user, and it returns 10000 rows per user and we have say 1000/10000 users making such requests (all users will have different result sets). Yes, in web-app, we will never show all 10000 results to the user instead it will be utilizing pagination features. So, should we go to the DB again to fetch next page of data or what will be good design principle? If we go to the DB again, won't it perform the sorting operation (10000 total records / 100 results per page  = 100 pages) considering every fetch will get 100 records per fetch. What would be the ideal implementation strategy?
6 days ago
I believe I couldn't make the question clearer, apologize for it. I meant the application needs to connect to the database using some credentials (URL, username, password etc.) and some other connection parameters as well, so, how can we protect this sensitive information in our application.
6 days ago
In case of dropping low priority messages, these need to be passed to consumer first, is my understanding correct? So, there are also we will have queue filled in that case.
6 days ago
No Tim, just to ensure best security mechanisms in place.
6 days ago
Thank you Stephan and Campbell.

Suppose the database returns the 10,000 records as query result. Should we store them in Java at the backend to save db queries. And, if we have 10000 users who are hitting this service and then won't it overkill the system. What are your suggestions?
6 days ago
What is the best and secured approach of storing the credentials such as DB, queues etc. Because if we store them in plain text in the application, anyone can misuse it.
6 days ago
Suppose we have a queue and some producer app is producing the messages into this queue at the rate of 100 messages/second. And the consumer is consuming messages at the rate of 50 messages/sec. So, there is a lag of 50 messages/sec which will cause the queue to full at some point in future. So, how to resolve such issues?
1 week ago
Thank you Stephan. Does that mean if we have millions of rows in database, still we should perform sorting on DB end only?

Is there any guideline on table size/number of records which govern the implementation place.
1 week ago
Suppose we have to fetch some data from the table from Oracle. And, we need to support sorting. Then, where should we implement sorting logic - on Java DAO/Service layers or at DB end (queries)? What is the guideline for such scenarios?
1 week ago
I am thinking if we need to decide whether we should go for Hibernate or not, then what are the decision criteria? Is hibernate always a good choice to build the DAO layer or there are some scenarios where Hibernate should be avoided?
1 week ago
I understand that Permgen used to give out of memory errors which has been resolved by metaspace. But, what is the reason to add a new memory area like metaspace in the JVM? Why they did not change the internal implementation of permgen keeping the same name itself.
1 month ago
I am just trying to understand how concurrent hashmap works internally? When we say it has 16 segments, what does it mean - how it can have 16 threads writing in parallel to the same map?
1 month ago
Some of the applications are using ActiveMQ and some are using HornetQ. And, we are planning to integrate them all. So, what would be the best integration strategy?

I was just wondering if they were using some implementation specific features in messages, then, how it will be handled across multiple vendors?
2 months ago