Share to: share facebook share twitter share wa share telegram print page

Microsoft Sync Framework

Microsoft Sync Framework is a data synchronization platform from Microsoft that can be used to synchronize data across multiple data stores. Sync Framework includes a transport-agnostic architecture, into which data store-specific synchronization providers, modelled on the ADO.NET data provider API, can be plugged in. Sync Framework can be used for offline access to data, by working against a cached set of data and submitting the changes to a master database in a batch, as well as to synchronize changes to a data source across all consumers (publish/subscribe sync) and peer-to-peer synchronization of multiple data sources. Sync Framework features built-in capabilities for conflict detection – whether data to be changed has already been updated – and can flag them for manual inspection or use defined policies to try to resolve the conflict. Sync Services includes an embedded SQL Server Compact database to store metadata about the synchronization relationships as well as about each sync attempt. The Sync Framework API is surfaced both in managed code, for use with .NET Framework applications, as well as unmanaged code, for use with COM applications. It was scheduled to ship with Visual Studio 2008 in late November 2007.[1]

Architecture

The Sync Framework architecture

The Sync Framework runtime provides synchronization functionality, without being tied to any data store or data transport protocols. By providing data source specific synchronization providers, any data source can be supported. For example, using proper synchronization providers, files can be synchronized across computers, project updates synchronized across project participants, or media synchronized across devices. Sync Framework ships with three providers: Microsoft Sync Services for ADO.NET, Sync Services for File Systems, and Sync Services for SSE. Sync Services can be used to synchronize devices by supplying providers for the device. Similarly, PIM software such as Microsoft Office Outlook and media libraries such as Windows Media Player can also be supported by providing suitable providers.

The providers are used to enumerate the items in a data store, each identified by an Item ID. In addition, they also have to maintain synchronization metadata and the state of the data store, so that changes can be enumerated quickly. The metadata is maintained for every instance of the data store (replica) that the provider is attached to. The metadata maintained includes the replica ID, tick count (representing progression in time), conflict log, tombstone log, and the set of the changes the data store has seen (knowledge). A replica ID and tick count pair makes up a version and encodes the state of the data store until that time. Sync Framework defines a set of operation for the Knowledge object for a replica: Contains which determines if the store contains a specified change, Union to merge two knowledge sets, Project to project out the knowledge for a subset of the items, and Exclude to create a new knowledge set without the changes for a subset of the items. The metadata is managed by the metadata storage service which uses an in-process SQL Server Compact database to store the metadata on a per-provider basis.

The Sync Services API operates by creating a synchronization session, represented by a Session object. A synchronization session synchronizes data across two synchronization providers - one for the source data store and the other for the destination. Instances of both the providers are passed to the Session object. During a synchronization session, the destination provider sends the knowledge set of the store. The source provider compares the knowledge of the destination with the change set in the source to enumerate the changes and then transfer it to the destination. The destination provider makes sure the changes are not conflicting and merges the changes and updates the knowledge.

  1. Snapshot sync (download-only sync): The data in the data source (or a subset of it) is synchronized with clients.
  2. Upload-only sync: Data in the client is merged to the source replica.
  3. Bidirectional sync: Both the data sources can be modified independently and changes are synchronized with each other. An n-level sync is achieved by performing multiple bidirectional synchronizations.

Sync Services for ADO.NET

Sync Services for ADO.NET Architecture

Microsoft Sync Services for ADO.NET is the synchronization provider for synchronizing across databases using ADO.NET. ADO.NET Datasets are synchronized between the source and the destination, which are then persisted to a database server. It can also support data sources other than a relational database, like an XML database or web service as long as a proxy is provided to abstract the data source and a data provider is available for the proxy.

The Sync Services for ADO.NET provider is intended for use in offline applications, where data from the central database is cached locally. The application works against the cached data, and the changes are uploaded in a batch. In addition, the provider can also be used for collaborative applications, where each application will work against its local dataset, which will be synchronized periodically in a peer-to-peer manner with the other participants. Locally, the datasets can be stored either by using the SQL Server Compact database or any other database server supporting ADO.NET. Sync Services for ADO.NET allows incremental change tracking, which allows only the changes to be replicated rather than replicating the entire copy.

Sync Services for File Systems

The Sync Services for File Systems provider is used to synchronize two file system locations, which can either be local folders or network shares. In addition to mirroring new files, changes to existing files are also synchronized. Changes to files are detected by using timestamps, or optionally, by hashing the file contents. Conflicting changes to the same file are detected and can be set to be automatically resolved. For conflicting updates to a same file, the newer edit will be kept. If a file is deleted in one replica but updated in another, the update will take precedence over the delete. If two files with different content are created with the same name across two replicas, during the sync operation, the one created later will be persisted. If a rename operation caused the files to get the same name, both are retained by renaming one of them. Any deletes can be configured to move the file to the Recycle Bin, so that it can be recovered if necessary. The Sync Services for File Systems provider also provides a preview mode which enumerates the actions that will be taken for a sync operation, without actually performing the operations, with a view to letting the users review the changes that will be made. The synchronization is performed in a peer-to-peer manner. Neither Sync Framework or the Sync Services for File Systems provider perform any authentication before accessing the files; so any authentication is the job of the application using the Sync Framework API. The files are transferred without encryption. To use encryption in transit, custom providers that uses an encrypted TCP connection needs to be used. The Sync Services for File Systems provider also supports static filters to exclude files based on wildcards or attributes. In the first CTP release, however, the Sync Services for File Systems provider does not sync either NTFS security descriptors or Alternate Data Streams.

Sync Services for FeedSync

The Sync Services for FeedSync provider can be used to help synchronize replicas by creating a FeedSync enabled feed, either in RSS or ATOM formats, which can then be subscribed to by interested parties. The provider can also be used to extract items from a FeedSync feed and merge the changes back to the data store. Sync Services for FeedSync uses another provider to connect to the data store.

Sync Services for FeedSync provides services that can be used to help synchronize the data of a replica with RSS and Atom feeds. (A replica is a particular repository of information to be synchronized.) By using the FeedSync producer service, a synchronization application can work with a synchronization provider to create a list of items from a replica and put them in an RSS or Atom XML stream. These items can then be published to interested subscribers. Similarly, the FeedSync consumer service helps a synchronization application take an input RSS or Atom XML stream, extract items from it, and then use a synchronization provider to apply only the appropriate changes to a replica. Because Sync Framework underlies the exchange of feed items, two feeds can be cross-subscribed and easily synchronized with one another as peers in a synchronization community. (A synchronization community is a set of replicas that keep their data synchronized with each other.)

Licensing

Microsoft Sync Framework is free on Windows and Windows Mobile devices. Support for other platforms is available through commercial licensing and porting kits.[2]

See also

Notes

  1. ^ "Microsoft: Sync Framework isn't Google Gears". 2007-11-06. Archived from the original on 2015-06-19. Retrieved 2015-06-19.
  2. ^ "Microsoft Sync Framework (MSF) – FAQ". Retrieved 24 July 2016.

Read other articles:

Selamat Tinggal MimpiAlbum studio karya Ita Purnama SariDirilis27 Desember 1989Genrepop, rockLabelBillboardKronologi Ita Purnama Sari Penari Ular (1988)String Module Error: Match not foundString Module Error: Match not found Selamat Tinggal Mimpi (1989) Swalayan (1989)String Module Error: Match not foundString Module Error: Match not found Selamat Tinggal Mimpi merupakan sebuah album musik solo ketiga milik penyanyi berkebangsaan Indonesia sekaligus anggota Tiga Dara, Ita Purnama Sari yang d…

French automobile and aircraft manufacturer This article may contain improper references to user-generated content. Please help improve it by removing references to unreliable sources, where they are used inappropriately. (October 2016) (Learn how and when to remove this template message) Clément-BayardFounded1903FounderAdolphe Clément-BayardDefunct1922SuccessorCitroënHeadquartersLevallois-Perret, ParisProductsAutomobiles, Aeroplanes, AirshipsOwnerAdolphe Clément-BayardNumber of employeescir…

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Februari 2023. SDN 011 BengkongInformasiJenisSekolah NegeriAlamatLokasiEngkong Sadai, Batam, Kepri,  IndonesiaMoto SDN 011 Bengkong, merupakan salah satu Sekolah Menengah Dasar Negeri yang ada di Provinsi Kepulauan Riau, yang beralamat di Engkong Sadai - Batam. Sa…

Association football club in Scotland Football clubDuncrub ParkFull nameDuncrub Park Football ClubNickname(s)Auld Dinnin',[1] the Thorntree Villagers,[2] the Lowlanders[3]Founded1885Dissolved1910GroundCroft ParkSecretaryHarry Christie[4] Home colours Duncrub Park Football Club was a football club from the village of Dunning, Perthshire, Scotland. History Report of the Scottish Cup First Round tie between Duncrub Park and Hibernian, Dundee Courier, 11 January 1897 …

Запрос «SVM» перенаправляется сюда; см. также другие значения. Метод опорных векторов (англ. SVM, support vector machine) — набор схожих алгоритмов обучения с учителем, использующихся для задач классификации и регрессионного анализа. Принадлежит семейству линейных классификат…

Jiang Zemin江澤民Jiang Zemin nel 2002 Segretario generale del Partito Comunista CineseDurata mandato24 giugno 1989 –15 novembre 2002 PredecessoreZhao Ziyang SuccessoreHu Jintao Presidente della Repubblica Popolare CineseDurata mandato27 marzo 1993 –15 marzo 2003 Vice presidenteRong YirenHu Jintao Capo del governoLi PengZhu Rongji PredecessoreYang Shangkun SuccessoreHu Jintao Presidente della Commissione militare centraleDurata mandato9 novembre 1989&#…

Agus Rohmat Kepala BNNP Jateng Informasi pribadiLahir16 Agustus 1968 (umur 55)Demak, Jawa TengahAlma materAkademi Kepolisian (1991)Karier militerPihak IndonesiaDinas/cabang Badan Narkotika NasionalMasa dinas1991—sekarangPangkat Brigadir Jenderal PolisiSatuanReserseSunting kotak info • L • B Brigjen. Pol. Dr. H. Agus Rohmat, S.IK., SH., M.Hum. (lahir 16 Agustus 1968) adalah seorang perwira tinggi Polri yang sejak 19 Oktober 2023 menjabat sebagai Kepala BNNP Jateng. …

Voce principale: Associazione Calcio Savoia 1908. Unione Sportiva TorreseStagione 1946-1947Sport calcio Squadra Torrese Allenatore Dario Compiani Presidente Antonio Carotenuto Serie B6º posto Maggiori presenzeCampionato: Negri (32)Totale: Negri (32) Miglior marcatoreCampionato: Rossi (17)Totale: Rossi (17) StadioCampo Formisano (5.000) 1945-1946 1947-1948 Si invita a seguire il modello di voce Questa voce raccoglie le informazioni riguardanti la Torrese nelle competizioni ufficiali della s…

American prelate For the Church of Ireland prelate, see Patrick Sheridan (Bishop of Cloyne). Patrick Joseph Thomas SheridanAuxiliary Bishop of New YorkChurchCatholic ChurchSeeArchdiocese of New YorkIn office1990–2001OrdersOrdinationMarch 1, 1947by Francis SpellmanConsecrationDecember 12, 1990by John Joseph O'ConnorPersonal detailsBorn(1922-03-10)March 10, 1922New York City, New York, U.S.DiedDecember 2, 2011(2011-12-02) (aged 89) Patrick Joseph Thomas Sheridan K.H.S., K.M., (Mar…

Ahok saat pemberian penghargaan oleh Bappenas Karier Basuki Tjahaja Purnama sebagai Gubernur DKI Jakarta adalah artikel yang berisi daftar kebijakan, kinerja, prestasi, dan kontroversi yang diraih oleh Gubernur DKI Jakarta, Basuki Tjahaja Purnama, atau dikenal dengan sebutan Ahok, selama masa pemerintahannya. Reformasi anggaran Penerapan e-budgeting Mulai tahun anggaran 2015, atau setelah dilantik menjadi Gubernur baru menggantikan Joko Widodo, Basuki Tjahaja Purnama mengajukan e budgeting sebag…

Men's coxless fourat the Games of the XXIII OlympiadVenueLake CasitasDate31 July – 5 AugustCompetitors40[1] from 10[1] nationsTeams10[1]Winning time6:03.48Medalists Les O'ConnellShane O'BrienConrad RobertsonKeith Trask  New Zealand David ClarkJonathan SmithPhillip SteklAlan Forney  United States Michael JessenLars NielsenPer RasmussenErik Christiansen  Denmark← 19801988 → Rowing at the1984 Summer OlympicsSingle scullsmenwom…

Raven Saunders Nazionalità  Stati Uniti Atletica leggera Specialità Getto del peso Record Peso 19,96 m (2021) Peso 19,57 m (indoor - 2021) Disco 56,85 m (2016) Martello 57,97 m (2016) Carriera Nazionale Stati Uniti Palmarès Competizione Ori Argenti Bronzi Giochi olimpici 0 1 0 Camp. NACAC U23 1 0 0 Camp. panamericani juniores 1 0 0 Per maggiori dettagli vedi qui Statistiche aggiornate al 1º agosto 2021 Modifica dati su Wikidata · Manuale Raven Saunders (Charleston, 15 maggio 1…

Space research project Hunt for Exomoons with KeplerEstablishedDecember 30, 2011 (2011-12-30)Research typeBasicField of researchAstrophysicsPrincipal investigatorDavid KippingStaffGáspár BakosLars BuchhaveJoel HartmanDavid NesvornýAllan SchmittNicknameHEKAffiliationsCenter for Astrophysics | Harvard & SmithsonianWebsitewww.cfa.harvard.edu/HEK/[dead link] The Hunt for Exomoons with Kepler (HEK) is a project whose aim is to search for exomoons, natural satel…

Head of the Catholic Church from c. 107 to c. 115 Pope SaintAlexander IBishop of RomeEighth-century fresco of Pope Saint Alexander I from Santa Maria AntiquaChurchEarly ChurchPapacy beganc. 107Papacy endedc. 115PredecessorEvaristusSuccessorSixtus IPersonal detailsBornAlexanderc. 75–80Rome, Roman EmpireDied115(115-00-00) (aged 39–40)Rome, Roman EmpireSainthoodFeast day3 May (Tridentine calendar)16 March (Greek Christianity)Venerated inCatholic ChurchEastern Orthodox ChurchOther popes nam…

Philippine indigenous people For the language, see Cotabato Manobo language. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Tasaday – news · newspapers · books · scholar · JSTOR (September 2021) (Learn how and when to remove this message) TasadayThe Tasaday people in their homeland, the last primal rainforest …

Chain of retail stores BrookstoneCompany typePrivateIndustryRetailFoundedPeterborough, New Hampshire, United States 1965[1]HeadquartersMerrimack, New Hampshire, United StatesNumber of locations34 (October 2018)[2]Key peopleSteven Goldsmith (CEO)OwnerSanpower Corp.Websitewww.brookstone.com A Brookstone store in Kittery, Maine Brookstone is a chain of retail stores in the United States and China. It was founded as a mail-order business in 1965, when it started selling items, such a…

 烏克蘭總理Прем'єр-міністр України烏克蘭國徽現任杰尼斯·什米加尔自2020年3月4日任命者烏克蘭總統任期總統任命首任維托爾德·福金设立1991年11月后继职位無网站www.kmu.gov.ua/control/en/(英文) 乌克兰 乌克兰政府与政治系列条目 宪法 政府 总统 弗拉基米尔·泽连斯基 總統辦公室 国家安全与国防事务委员会 总统代表(英语:Representatives of the President of Ukraine) 总理…

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Januari 2023. Scilla Heather AndreenLahir16 November 1961 (umur 62)Sacramento, California, Amerika SerikatPekerjaanCEO, Produser film, Direktur , perancang kostumTahun aktif1986–sekarang Scilla Heather Andreen (lahir tanggal 16 November 1961) adalah seorang…

Este artículo se refiere o está relacionado con un proceso electoral futuro. La información de este artículo puede cambiar frecuentemente. Por favor, no agregues datos especulativos y recuerda colocar referencias a fuentes fiables para dar más detalles. ← 2020 •               Elecciones municipales de 202478 alcaldes para el período 2025-20291126 escaños en las Legislaturas municipales Fecha Martes, 5 de n…

دبليو دبليو إي سيرفايفر سيريس المطور ناتسومي الناشر إل إتش كيو الموزع تي إتش كيو  النظام غيم بوي أدفانس  تاریخ الإصدار 2004 نوع اللعبة مصارعة النمط لعبة فيديو جماعية،  ولعبة فيديو فردية  التقييم ESRB:  تعديل مصدري - تعديل   دبليو دبليو إي سيرفايفر سيريس هي لعبة فيدي…

Kembali kehalaman sebelumnya