WebGIS development-Waterloo (3)

Source: Internet
Author: User
During initial development, I created a map service object for each user. In this way, the layer visibility control of the map, display scale, geographical display range, and drawing size are displayed, selecting user-related personalized information such as graphics has independent map objects for maintenance. at the early stage of development, there were only a few testers who did not find any problems. Then there were several more testers. The problem came and the map turned black! When IE is open to 29, the display is not normal, and some lines are not properly drawn.

Later, we found that we were constantly creating map objects for each user, and the map object itself needed bitmap and other kernel resources, especially when multiple users were concurrent, and the system was scrambling to create kernel objects.

Only by changing the map service mode, only one map service object is created, and personalized information such as the visibility of the graphic layer is selected for the current display range of the scale, stored in the session, each request for the map, this information is also passed to the map object. this saves kernel resources.

There is still a problem. For concurrent access, user a requested the map and has not yet returned the result. User B also requested the map, resulting in the final result returned to the user being the map requested by user B.

What should I do ????

Multi-thread concurrency control, as for the Implementation Details, let's not talk about it. In the C # environment, implement

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.