Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tileserver on a diet using node.js

Avatar for Igor Tihonov Igor Tihonov
September 10, 2014

Tileserver on a diet using node.js

Imagine you were to present large amounts of constantly changing, live data to the users on a web map. Imagine it was on a website with high traffic volume(83 millon page views per month) and high requirement on quick response time. What software would you use to solve this challenge?

This presentation will cover the journey that Hemnet, a leading real estate property portal in Sweden, took while remaking a vital part of the website. A journey, during which a number of existing map servers, such as Geoserver, were put on test, but were not fast and flexible enough. A journey, that ended with creating a custom tileserver with technologies like Mapnik to make it as fast and efficient as possible.

During the presentation we will cover the challenges we had and how we faced them with different technologies available. We’ll take a look at how we did performance tests and how we rolled everything out to the masses.

Avatar for Igor Tihonov

Igor Tihonov

September 10, 2014

Other Decks in Technology

Transcript

  1. Lots and lots of live data • 500 000 properties

    with coordinates • Constantly changing data, every minute • 100 000 000 page views with map per month • Searches that give 0 - 100 000+ results
  2. +

  3. Downsides • Slow rendering time, 5-10 seconds per tile •

    Search parameters • Database load • Responsiveness and Interactivity
  4. From Mapnik to node-canvas • Filter our points for requested

    bounding box • Translate geographical coordinates to pixel coordinates • Pick the icon • Draw on canvas