Hidden Treasure Chronicle Queue

Hidden Treasure Chronicle Queue

Chronicle is a cool name right? It’s like science fiction movie’s AI. Chronicle find me the Uranium!

Chronicle is a cool name right? It’s like science fiction movie’s AI. Chronicle find me the Uranium!

But unfortunately it is just a queue, it is a good one too.


In our project (It was a network project, we got datas from devices and analyzed them) there was a need that 10 million device objects have to be shuffled and send it to get datas from devices. They have to be shuffled because you shouldn’t go more than once to network devices at the same time, it cause too much network activity and it effects network quality in devices.

It is easy right just get the objects and shuffle them.

Collections.shuffle(list);

Nope. Your heap size gonna off the roof by doing this. 10 million object is really huge and object has 30–35 property.

If I remember correctly first time we try this, heap size was over 10GB and application was crashed.


So 10 million data, how can I shuffle them and not causing huge increase on heap size.

I started to research. I wanted to store them in a file and get them randomly, it would be quick and heap free. But how can you do that? Okay you stored your all object to a file line by line but how can you take them by random? File doesn’t have a line number to get data like lines.get(1) and I think I tried to find going to a random line but I couldn’t find anything.

I didn’t wanted to use db. Mongo_(we were using that) _was already doing too much work and it would be too slow to work with and getting datas by random is still a problem.

java software-development queue solutions software-engineering

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Offshore Software Development - Best Practices

To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.

Software Developer vs Software Engineer — Differences: Bogus or Real?

In this article, see if there are any differences between software developers and software engineers. What you’re about to read mostly revolves around my personal thoughts, deductions, and offbeat imagination. If you have different sentiments, add them in the comment section, and let’s dispute! So, today’s topic…

Hire Dedicated Java Developer and Offshore Java Developers

For world-class java web application development services you must hire dedicated java developer from a reputed software development company – ByteCipher Pvt. Ltd

Java Software Development Company | Java Development Services USA

INEXTURE Java Development Company in USA, Offering Complete range of Java Development Services, Java Web application & Mobile app Development services.

How to Hire an Outsourcing Software Development Company

While outsourcing **[custom software development services](https://bytecipher.net/ "custom software development services")** for all your needs, you can add ample interests to the business by giving access to skilled expertise resulting in the...