Hi all,

I'm playing with http://www.mapbox.com to build a map with 1.3M
markers.

The markers are stored in a redis database on heroku.

I'm learning Clojure, so my first attempt has been to use Carmine for
loading the entries and creating the javascript variable on the fly.

This works ok for a small (<10000) number of markers:

  http://wlmmap.herokuapp.com/

But of course this does not scale well.

My next step is to make the process asynchronous so that an nearly
empty map displays immediately, and markers are progressively added
to the map.

I'm a bit lost where to start:

- shall I try to use a nodejs redis client then handle the async
  loading of markers (stored in the javascript variable) with
  core.async?

- shall I try to use the "aleph" library to create a channel where
  I collect the entries, then use shoreleave to create a defremote
  returning this channel?

- ... ?

As you guess from all the library-name-dropping, I've been traveling
around the web quite far but my overall knowledge of Clojure(Script)
is too weak at the moment to know the best direction.

If anyone can put me on the right track, or even show me some code
that solves this problem of loading a big database asynchronously
into a javascript variable, I'd appreciate this a lot!

Thanks in advance,

-- 
 Bastien

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to