Skip to main content

Cum sa sincronizam mai multe baza de date SQL Azure - Data Sync Service

Uneori avem nevoie de un mecanism prin care sa putem sincroniza una sau mai multe baza de date SQL Azure. Putem sa încercam sa scriem cod prin intermediul căruia sa ne sincronizam bazele de date din același data center sau din data center-uri diferite.
O alta soluție la îndemîna este Data Sync Service. Prin intermediul acestui mecanism putem sa ne sincronizam doua sau mai multe baza de date din cloud fara sa fie nevoie sa scriem nici o linie de cod. Nu mai este nevoie sa reinventam roata din nou.
De exemplu dacă avem 2 baze de date în norișor, una în Europa și alta în Asia pe care trebuie sa le sincronizam bidirecțional putem sa folosim cu încredere acesta soluție. Orice modificare făcuta într-o baza de date se va face în mod automat și în cealaltă baza de date din celalalt data center.
Nivelul de granularitate dupa care se poate face filtrarea in acest moment este tabela. Putem sa setam ca una sau mai multe tabele sa fie sincronizate. Din fericire in cazul in care acelasi continut este modificat in doua tabele sincronizate, Data Sync Service poate sa rezolve singur aceasta problema si sa faca handling la aceste probleme intr-o oarecare masura.
Sincronizare se poate face doar la o parte din tabele( mai putini bani). Se poate face un schedule pentru momentul cînd se dorește sa se facă sincronizarea( granularitatea este la nivel de ora). O alta varianta de sincronizare este la cerere.
Opțiunea de sincronizare bi-direcționala este cu doua tăișuri. Aceasta ne permite sa tinem doua sau mai multe baza de date sincronizate in orice moment. O modificare care se face intr-o baza de date( intr-un hub), se propaga aproape instantaneu si la restul bazelor de date. Din pacate varianta de Sync Framework care este pentru cloud nu permite sa facem handling la conflicte. In acest caz trebuie sa avem grija la modul in care generam primary key-urile.
Pentru mai multe informatii http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-data-sync-overview.aspx

Comments

Popular posts from this blog

Why Database Modernization Matters for AI

  When companies transition to the cloud, they typically begin with applications and virtual machines, which is often the easier part of the process. The actual complexity arises later when databases are moved. To save time and effort, cloud adoption is more of a cloud migration in an IaaS manner, fulfilling current, but not future needs. Even organisations that are already in the cloud find that their databases, although “migrated,” are not genuinely modernised. This disparity becomes particularly evident when they begin to explore AI technologies. Understanding Modernisation Beyond Migration Database modernisation is distinct from merely relocating an outdated database to Azure. It's about making your data layer ready for future needs, like automation, real-time analytics, and AI capabilities. AI needs high throughput, which can be achieved using native DB cloud capabilities. When your database runs in a traditional setup (even hosted in the cloud), in that case, you will enc...

Cloud Myths: Migrating to the cloud is quick and easy (Pill 2 of 5 / Cloud Pills)

The idea that migration to the cloud is simple, straightforward and rapid is a wrong assumption. It’s a common misconception of business stakeholders that generates delays, budget overruns and technical dept. A migration requires laborious planning, technical expertise and a rigorous process.  Migrations, especially cloud migrations, are not one-size-fits-all journeys. One of the most critical steps is under evaluation, under budget and under consideration. The evaluation phase, where existing infrastructure, applications, database, network and the end-to-end estate are evaluated and mapped to a cloud strategy, is crucial to ensure the success of cloud migration. Additional factors such as security, compliance, and system dependencies increase the complexity of cloud migration.  A misconception regarding lift-and-shits is that they are fast and cheap. Moving applications to the cloud without changes does not provide the capability to optimise costs and performance, leading to ...

Cloud Myths: Cloud is Cheaper (Pill 1 of 5 / Cloud Pills)

Cloud Myths: Cloud is Cheaper (Pill 1 of 5 / Cloud Pills) The idea that moving to the cloud reduces the costs is a common misconception. The cloud infrastructure provides flexibility, scalability, and better CAPEX, but it does not guarantee lower costs without proper optimisation and management of the cloud services and infrastructure. Idle and unused resources, overprovisioning, oversize databases, and unnecessary data transfer can increase running costs. The regional pricing mode, multi-cloud complexity, and cost variety add extra complexity to the cost function. Cloud adoption without a cost governance strategy can result in unexpected expenses. Improper usage, combined with a pay-as-you-go model, can result in a nightmare for business stakeholders who cannot track and manage the monthly costs. Cloud-native services such as AI services, managed databases, and analytics platforms are powerful, provide out-of-the-shelve capabilities, and increase business agility and innovation. H...