How efficient can Meteor be while sharing a huge collection among many clients?

后端 未结 4 1461
暗喜
暗喜 2020-11-29 15:16

Imagine the following case:

  • 1,000 clients are connected to a Meteor page displaying the content of the \"Somestuff\" collection.

  • \"Somestuff

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 16:02

    The experiment that you can use to answer this question:

    1. Install a test meteor: meteor create --example todos
    2. Run it under Webkit inspector (WKI).
    3. Examine the contents of the XHR messages moving across the wire.
    4. Observe that the entire collection is not moved across the wire.

    For tips on how to use WKI check out this article. It's a little out of date, but mostly still valid, especially for this question.

提交回复
热议问题