This is a migrated thread and some comments may be shown as answers.

Distribued Application and Primary keys with HIGHLOW

2 Answers 49 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Laurent Fabre
Top achievements
Rank 2
Laurent Fabre asked on 19 Dec 2009, 06:01 AM
Hi guys,

I make use of the Forward Mapping feature in OpenAccess to design my MySQL Database and originally I was using the auto_increment offset trick to support circular replication (which was so bad from a performance point of view).

I went all the way correcting my code to use HIGHLOW generator and it's working like a charm. But then I'm wondering, what are the prerequisites to prevent two nodes in my cluster from coming up with the same generated key in this setup ?

MSMQ could be an anwser ? Like a short one non-allienating one for instance ? :)

Best Regards,

LF

2 Answers, 1 is accepted

Sort by
0
Accepted
Ady
Telerik team
answered on 23 Dec 2009, 04:08 PM
Hello Laurent Fabre,

 Have you tried the 'Synchronous Data Replication'? This should work for you because based on the description the HIGHLOW generated key value will be a part of a 2-phase commit transaction in the cluster.

Greetings,
Ady
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Laurent Fabre
Top achievements
Rank 2
answered on 06 Jan 2010, 06:52 AM
You may be right I'll look into it.

Thanks,

LF
Tags
Development (API, general questions)
Asked by
Laurent Fabre
Top achievements
Rank 2
Answers by
Ady
Telerik team
Laurent Fabre
Top achievements
Rank 2
Share this question
or