Investigating Web Workers
: Martin Holmes
Minutes: 70
I haven’t had a need to use Web Workers yet, but there has been a suggestion that they might be a solution to the need to process large timeline datasets in BreezeMap, so I thought I should start getting comfortable with how they work. The basics are fairly straightforward, but the limitations are considerable. In particular, the fact that you really only have one message handler means that if you’re doing any significant communication between the WW and the main thread, that’s going to end up as a big switch statement, which is not ideal. But lots more to learn here.