Geez, talk about twisting words. RESTful API is only if he wanted to take this app to another level. Using basic HTTP server which took him a single DAY (with the code sample I had, prob more like 2-3 hrs) to complete was the easy answer.
I hate the idea of juggling multiple open source DBs. I already have MySQL, Postgres, SQL Server, Oracle on my machine. Need I have to deal with another specialized database. But I'm not gonna hate on a product that I haven't used. If OP is willing to experiment with RedisDB, I would hope he gives the pros or cons of using such a solution.
I hate the idea of juggling multiple open source DBs. I already have MySQL, Postgres, SQL Server, Oracle on my machine. Need I have to deal with another specialized database. But I'm not gonna hate on a product that I haven't used. If OP is willing to experiment with RedisDB, I would hope he gives the pros or cons of using such a solution.
Quote from CalVolibrator:
Lol, you consider your suggestion "simple"?
Your idea:
* code up an entirely new app to load data
* and handle caching of data
* as well as serve the data through a REST API.
* Code up a REST client, multithreaded/async in order to not freeze up the main UI thread.
My idea:
* Run a RedisDB instance with data persisted/loaded to disk each time the RedisDB server instance is fired up. (required time to setup 10 minutes plus another 10 minutes to initially load and persist the csv based data into the db.)
* Access the data through a lightweight java client (time required: 20 minutes, fully functional API exists already, all one needs is to follow the basic examples on the website.
Now that is efficiency.