This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python 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
5
Received in last 30 days
0
Total given
82
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vaibhav Gargs

We are working upon designing a system where the users can upload the excels, the system will process the files and persist in DB as required. The requirement here is that if some user is already uploading the file, the system should not allow any other user to upload the files. What would be the best design approach for this implementation?
1 week ago
HashTable doesn't support null key / values while hashmap does. What is the reason behind this design?
1 month ago
Thank you Tim and Stephan. May i please know the reason that it is not good option to read and write the file using threads? Won't it speed up the processing as we are doing read and write in parallel. By the time writing is finished, we will be done with the reading and processing also.
Thank you Tim and Stephan. May i please know the reason that it is not good option to read and write the file using threads? Won't it speed up the processing as we are doing read and write in parallel. By the time writing is finished, we will be done with the reading and processing also.
Suppose we have a thread which is writing some records to a file and there is another thread which will be reading that file to get the records. How this problem can be implemented using threading as we need to ensure that threads can work efficiently and reader thread doesn't read any half of the record.
There would be 2 cases:

1. Messages which don't reach to the consumer at all and lost on the way
2. Messages which reached the consumer but processing got failed.
I am not in favour of replacing it with activemq. I am just thinking that since we have both producer and consumer written in java tech stack what other reason/benefit RabbitMQ would provide other than activemq? And, I believe RabbitMQ provides platform independence which is lacking in activemq. Please correct me if wrong.
2 months ago

Claude Moore wrote:What is RabbitMq required by? Is it a product requirement?



In the project architecture, RabbitMQ is being used for messaging. So just thinking why can't we use activemq?
2 months ago
I am just wondering why RabbitMQ is required she we already had activemq? Both are messaging techniques and for language independence, there could be wrappers built around activemq to support diff languages.
2 months ago
If we are designing a multi threaded application, then how will we determine the optimal number of threads for the application?

Does a high number consume more processor as compared to less number of threads?

Which thread pool is best to use?
If we have a web app which serves around 500 concurrent users, then what will be the optimal number of DB connections too be configured? What all parameters to be used to determine this number?
And which Connection pool is best to use?
2 months ago
In SpringMVC application, we have a web.xml file and the project is packaged as a war file and deployed on a server. But, in case of SpringBoot, we don't specify any web.xml and the file is also a jar file.

I am wondering:

1. Do we  really not need the web.xml? This must be there for a web application.

2. If there is no war file, then how it is able to server the web requests?

3. How the spring boot jar file runs on embedded tomcat?
2 months ago
I am learning about Docker and have few basic doubts about it:

1. We say that we get the same platform in different environments as dev/test/prod etc. using docker, so, do we specify the OS to be used in docker file?

2. How the docker file works internally? When we download an image for mysql/oracle what actually it contains inside it? How about licensing of the software?

3. We can give the port number explicitly to run the applications. But, how it is used to autoscale the applications i.e. how it assigns the ports in that case?

4. How does a MySQL image differs from MySQL installation package?
2 months ago
I am just wondering what is the significance of Lambda expressions:

1. Is this just another way to write anonymous inner classes?

2. Is there something which we can't achieve till Java7 without lambda's feature available?

3. is this just a short code for writing the code?
2 months ago
If we have to implement Internationalization in the websites, then we use the properties files having key value pairs - keys being consistent across languages. So, what is the best way to load these properties :

1. During loading the application itself
2. Whenever we call some page to render, then fetching those properties only
3. Any other way?
2 months ago