Leaflet / how many parallel threads are recommended?

This forum deals with any kind of web based client technology, whether it is the well known java script based Ajax servlet or the upcoming approaches such as Leaflet, OpenLayers and so on.

Leaflet / how many parallel threads are recommended?

Postby Bernd Welter » Wed Dec 05, 2018 10:49 am

Hi there,

From what I heard about leaflet is that it (more precise: the browser) limits the number of parallel connections to further URLs to a defined threshold value. Therefore a mapping framweork such as LEAFLET can only consume a number of tiles at the same time in parallel. In times of "full display mapping" a frontend requires 50-100 tiles and I'd like to speed up the rendering process.

Imagine we have a backend xMapServer (cluster) with sufficient number of backend modules:
Does it make sense to add further logical names to perform a "detour"? This approach could reduce rendering time by a factor 3 ;-)
leaflet.png
Same logical backend service is assigned to several "different" names

Any experience in the crowd?

Best regards,
Bernd

https://www.w3.org/Protocols/rfc2616/rf ... l#sec8.1.4
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1353
Joined: Mon Apr 14, 2014 10:28 am

Re: Leaflet / how many parallel threads are recommended?

Postby Joost » Wed Dec 05, 2018 11:04 am

IMO the difference running xMap with 1 modules vs 2 modules is noticeable in the end user experience. However if you would upscale to 4 modules and thus 2 logical names for the host I find the difference becomes less noticeable. Even if the xServer is not in the local intranet (for example you are using xServer internet) most sites I visit often have a good enough internet connection that it doesn't make a noticeable difference.

My common advise is to start without multiple logical names and later you can always add this to your code if users still find the map sluggish.
Joost Claessen
Senior Technical Consultant
PTV Benelux
Joost
 
Posts: 237
Joined: Fri Apr 25, 2014 1:46 pm

Re: Leaflet / how many parallel threads are recommended?

Postby Bernd Welter » Wed Dec 05, 2018 4:27 pm

Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1353
Joined: Mon Apr 14, 2014 10:28 am


Return to PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)

cron