Thu

Apr 27
2006

Tim O'Reilly

Tim O'Reilly

Database War Stories #4: NASA World Wind

Patrick Hogan of NASA World Wind, an open source program that does many of the same things as Google Earth, uses both flat files and SQL databases in his application. Flat files are used for quick response on the client side, while on the server side, SQL databases store both imagery (and soon to come, vector files.) However, he admits that "using file stores, especially when a large number of files are present (millions) has proven to be fairly inconsistent across multiple OS and hardware platforms."

I asked: "Tell me about your database architecture for NASA World Wind." Patrick replied:

"What appears to the user as a single image of a very large physical range really consists of millions of images. In an application like World Wind, which displays many different kinds of large ranges, the database must hold billions of images (Gigaimages) or references to them. Each image, although typically ~20KB can also be megabytes in size.

Demand on the image-serving database is bursty and intense. Dozens of images could be needed immediately with each small change in the user's view direction.

On the client side of World Wind, there is very limited use of traditional SQL-based databases. The client depends mostly on flat-file stores to maintain data. However, on the server side of things, World Wind enabled servers have relied on SQL-based databases to store imagery and will soon in-the near future deliver vector-based data via the WFS protocol. World Wind already delivers data via WMS."

In response to my question about lessons learned in managing their data store, Patrick wrote:

"[1]Using file stores, especially when a large number of files are present (millions) has proven to be fairly inconsistent across multiple OS and hardware platforms. This method basically relies on the underlying OS to handle the "database", and this leaves room for irregularities, which we have experienced. Moving towards a more efficient and consistent solution, like a light-weight SQL database might solve a couple issues, but could add a level of complexity above and beyond our current system, which enjoys a fairly easy-to-understand structure.

[2] An API-centric architecture, with all functionalities as modular components, which is how we are refactoring the implementation, would have saved us some rework. It is interesting to watch the advances being made by the .NET and Java technologies that will allow for much greater speed in the product development cycle.... I guess the biggest news is that we will have a 'shared' architecture of
these implementations (.NET and Java) that will remain structurally identical. The intent is to allow plugins to be used as interchangeably as possible, i.e. via Python.

When I asked him about the scale and type of data his application manages and its growth rates, Patrick wrote:

"On our own servers, we serve a couple Terabytes worth of imagery for each Earth dataset (and there are several of these) for just 15-meter coverage. Once you go to the submeter resolution, these numbers quadruple a couple times. Imagery datasets will grow and rather quickly. NASA plans to deliver at least 250 times more Lunar and Mars data from the latest LRO (Lunar Reconnaissance Orbiter) and MRO (Mars Reconnaissance Orbiter) satellites. Elevation datasets will remain relatively small, in the hundreds of MBs."

More entries in the database war stories series: Second Life, Bloglines and Memeorandum, Flickr, Craigslist, O'Reilly Research, Google File System and BigTable, Findory and Amazon, Brian Aker of MySQL Responds.


tags: web 2.0  | comments: 1   | Sphere It
submit:

 
Previous  |  Next

0 TrackBacks

TrackBack URL for this entry: http://blogs.oreilly.com/cgi-bin/mt/mt-t.cgi/4613

Comments: 1

  Denis [04.28.06 01:02 AM]

Very helpful serie about database, but may I suggest that when you are writing series you try at least to have one common tag in all posts of the series in order to be able to refer to the whole serie instead of specific article ?

same have database other databases, some backstory some not...

My 2 cents

Post A Comment:

 (please be patient, comments may take awhile to post)






Type the characters you see in the picture above.