Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
6 votes
1 answer
287 views

Send records to messaging queue using either of one policy

I have bunch of keys (clientKey) and values (processBytes) that I want to send to our messaging queue by packing them in one ...
david's user avatar
  • 1,997
3 votes
1 answer
290 views

Managing socket pool per datacenter

I have a list of sockets per datacenter (in general, I have around three datacenter and each datacenter having 20 sockets, so in total I have around 60 sockets). Now I have 20 business threads which ...
david's user avatar
  • 1,997
2 votes
1 answer
7k views

Send data on a socket from multiple threads

I have around 60 sockets, 20 business threads and 1 pinger timer thread and I want to make sure each of those thread works on different socket every time so I don't want to share same socket between ...
david's user avatar
  • 1,997
3 votes
1 answer
4k views

Running multiple kafka consumers on the same box independent of each other

I have two Kafka consumer ConsumerA and ConsumerB. I want to run these two kafka consumers independent of each other on the same ...
david's user avatar
  • 1,997
2 votes
1 answer
58 views

Is it bad practice to have executable code in my channel state object?

I have a CommunicationStateMachine object that's attached to my channels. It keeps track of who's turn it is to speak, how far along the conversation the server and ...
mal's user avatar
  • 313
4 votes
2 answers
177 views

Code organization when using threads

From OOP & OOD point of view, is it good idea to define Java-threads inside of the static method or in this case it's better to use instance-based method? ...
Mike's user avatar
  • 277
2 votes
2 answers
3k views

Multithreaded report generation

I have a requirement where I have to generate some reports read from a database and write the data to Excel. I want your help in reviewing the following things in my code: Database connection ...
VIckyb's user avatar
  • 675
2 votes
1 answer
321 views

Controller for a MUD client

I want to ensure that, as much as possible given my skill level, that I'm using relevant patterns correctly and following naming conventions. This is a controller for a poor-mans MUD client using ...
Thufir's user avatar
  • 369
5 votes
1 answer
486 views

Review of simple Java Actor library

How can I improve this code? Also available from git://github.com/edescourtis/actor.git . Actor.java ...
Eric des Courtis's user avatar
5 votes
1 answer
6k views

Singleton class extending a parent class to utilise shared functionality

I have a singleton class which extends from an abstract java class. Two singleton classes extend from ItemImageThreadManager, the reason for this is to use shared ...
blue-sky's user avatar
  • 547