Over a million developers have joined DZone.

0, 1, Many, a Zillion

DZone's Guide to

0, 1, Many, a Zillion

· Performance Zone ·
Free Resource

SignalFx is the only real-time cloud monitoring platform for infrastructure, microservices, and applications. The platform collects metrics and traces across every component in your cloud environment, replacing traditional point tools with a single integrated solution that works across the stack.

There are only four numbers in computer programs:

0, 1, many, "a zillion"

If you have 2 or more of anything, you are, in general, better off using loops to process many of them.

But what is "a zillion?"

Zillion is a made-up number. Your system cannot hold a zillion items in memory. It cannot show a zillion items on the screen.

Doesn't work for "a zillion":

Select employee name:

Doesn't work for "a zillion":

def handleFiles( filenames: Array[String] ) {
    val results = openFiles(filenames).readAll().processAll()
* The program first opens all the files, and then processes them. The OS will run out of file handles.

Doesn't work for "a zillion":

Changing software from handling "many" to "a zillion" is hard if the program is already written.

Decide when to you need to handle a zillion.

SignalFx is built on a massively scalable streaming architecture that applies advanced predictive analytics for real-time problem detection. With its NoSample™ distributed tracing capabilities, SignalFx reliably monitors all transactions across microservices, accurately identifying all anomalies. And through data-science-powered directed troubleshooting SignalFx guides the operator to find the root cause of issues in seconds.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}