commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Hall <>
Subject Re: [POOL2] Pooling mutable objects
Date Mon, 09 Feb 2015 05:07:10 GMT
On Sun, Feb 08, 2015 at 11:07:59AM +0100, Michael Osipov wrote:
> How would you propose to use it?
> I would still need a random number or do you recomment to use a static one
> and simply increment during the lifetime of the application?
> If so, thing might cause trouble in the future because I would probably
> store the session information in a database for analysis issues and woudl
> have collisions.
> Michael

Then you either have to use real big random's like UUID and accept it'd be 
slow, or derive the numeric values from a native DB counter (for example, a 
Redis counter, or a PostgreSQL sequence data type).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message