A growing class of applications demands \emph{fair ordering/sequencing} of events which ensures that events generated earlier by one client are processed before later events from other clients. However, achieving such sequencing is fundamentally challenging due to the inherent limitations of clock synchronization. We advocate for an approach that embraces, rather than eliminates, clock variability. Instead of attempting to remove error from a timestamp, Tommy, our proposed system, leverages a statistical model to compare two noisy timestamps probabilistically by learning per-clock offset distributions. Our preliminary statistical model computes the probability that one event precedes another w.r.t. the wall-clock time without access to the wall-clock. This serves as a foundation for a new relation: \emph{likely-happened-before} denoted by $\xrightarrow{p}$ where $p$ represents the probability of an event to have happened before another. The $\xrightarrow{p}$ relation provides a basis for ordering multiple events which are otherwise considered \emph{concurrent} by the typical \emph{happened-before} ($\rightarrow$) relation. We highlight various related challenges including intransitivity of $\xrightarrow{p}$ relation as opposed to the transitive $\rightarrow$ relation. We also outline several research directions: online fair sequencing, stochastically fair total ordering, host-level support for fairness and more.
تتناول هذه الورقة تحديات الترتيب العادل (fair ordering) في الأنظمة الموزعة، وتقترح نهجاً جديداً يتقبل بدلاً من القضاء على تباين الساعات. يقدم المؤلفون نظام Tommy، الذي يتعلم توزيع الانحراف لكل ساعة ويستخدم نماذج إحصائية لإجراء مقارنات احتمالية للطوابع الزمنية المشوشة. الابتكار الأساسي هو تقديم علاقة "likely-happened-before" (p)، حيث يمثل p احتمالية حدوث حدث قبل آخر. تتمكن هذه العلاقة من ترتيب الأحداث التي تعتبرها العلاقة التقليدية happened-before (→) متزامنة، لكنها تجلب تحديات جديدة مثل عدم التعدية.
يتطلب الترتيب العادل في الأنظمة الموزعة ضمان معالجة الأحداث التي ينشئها عميل واحد في وقت مبكر قبل الأحداث التي ينشئها عملاء آخرون في وقت متأخر. هذا أمر حاسم في التطبيقات التنافسية مثل البورصات المالية وبورصات الإعلانات، والمعروفة باسم "تطبيقات المزاد" (auction-apps).
القيود الأساسية لمزامنة الساعات: في الشبكات غير المتزامنة أو ذات المزامنة المحدودة، لا يمكن أن تتجاوز دقة مزامنة الساعات لـ n عملية u(1−1/n)، حيث يمثل u عدم اليقين في تأخير الارتباط.
تعريف الترتيب العادل: يجب أن يكون ترتيب الرسائل الذي يراه الخادم مطابقاً للترتيب الذي يلاحظه مراقب عالم الكل.
الإدخال: تدفق رسائل العميل مع طوابع زمنية محلية
الإخراج: دفعات رسائل مرتبة بشكل عادل حسب وقت الإنشاء
القيود: لا يمكن الوصول إلى ساعة عالمية، ويمكن فقط استخدام مزامنة ساعات بأفضل جهد
تقدم هذه الورقة بشكل رائد فكرة الترتيب العادل الاحتمالي، وتوفر اتجاهاً حلاً جديداً لمشكلة العدالة في الأنظمة الموزعة. على الرغم من وجود بعض التحديات النظرية والتنفيذية، فإن الفكرة الأساسية لها قيمة أكاديمية وإمكانات عملية مهمة، وتضع الأساس للأبحاث اللاحقة.