locked
Is batching necessary when using collaborative providers over a n-tiered architecture? RRS feed

  • Question

  • All samples I've found so far for collaborative providers over n-tier architecture involve batching.

    Samples of n-tier architecture with offline providers don't mess with batching. Is is possible to separate and remove batching from the n-tier architecture when using collaborative providers? Do somebody know of an example?

    Best regards.

    Wednesday, July 7, 2010 6:33 AM

Answers

  • No. It's not required. if you dont set the MemoryDataCacheSize, batching is not enabled.

    However, batching has advantages. You are able to control the amount of memory thats available for temporarily holding changes, you break up the sending of changes over the wire and if the connection drops, Sync Fx will start from the batch when the connection drops and not requiring to retrieve and send all the previous batches that has been sent already.

    One thing to note about batching though, you are just batching the sending of changes over the wire and not the application. If a sync requires 10 batches, all 10 batches are applied as a single unit.

    see this blog for more information on batching: http://blogs.msdn.com/b/mahjayar/archive/2009/09/16/msf-v2-ctp2-deep-dive-memory-based-batching.aspx

    • Marked as answer by Dauphin bleu Wednesday, July 7, 2010 2:23 PM
    Wednesday, July 7, 2010 10:57 AM

All replies

  • No. It's not required. if you dont set the MemoryDataCacheSize, batching is not enabled.

    However, batching has advantages. You are able to control the amount of memory thats available for temporarily holding changes, you break up the sending of changes over the wire and if the connection drops, Sync Fx will start from the batch when the connection drops and not requiring to retrieve and send all the previous batches that has been sent already.

    One thing to note about batching though, you are just batching the sending of changes over the wire and not the application. If a sync requires 10 batches, all 10 batches are applied as a single unit.

    see this blog for more information on batching: http://blogs.msdn.com/b/mahjayar/archive/2009/09/16/msf-v2-ctp2-deep-dive-memory-based-batching.aspx

    • Marked as answer by Dauphin bleu Wednesday, July 7, 2010 2:23 PM
    Wednesday, July 7, 2010 10:57 AM
  • Again, thank you June.

    I'll take a look into it.

    Wednesday, July 7, 2010 2:24 PM