Bloom filters से API की गति 16 गुना बढ़ी

मूल शीर्षक: Bloom filters: the niche trick behind a 16× faster API | Blog | incident.io

यह क्यों महत्वपूर्ण है

बड़े scale databases की performance optimization में Bloom filters का सफल उपयोग दिखाता है।

incident.io ने Bloom filters तकनीक का उपयोग करके अपने API endpoint की P95 latency को 5 सेकंड से घटाकर 0.3 सेकंड कर दिया। बड़े ग्राहकों के millions alerts के साथ filtering performance में सुधार के लिए यह computer science trick अपनाई गई।

incident.io की On-call product में alerts की filtering धीमी होने की समस्या थी। बड़े organizations के लिए alert history dashboard में फिल्टर करना 12 सेकंड तक का समय ले रहा था। कंपनी के metrics के अनुसार P95 response time 5 सेकंड था। समस्या alerts table में millions entries और complex attribute-based filtering के कारण थी। alerts को source, priority, team और features जैसे parameters से filter किया जा सकता है। PostgreSQL database में stored alerts table में organization_id, created_at, priority_id और attribute_values columns हैं। filtering algorithm की complexity बढ़ने से performance घट रही थी। कंपनी ने Bloom filters का innovative उपयोग करके इस समस्या का समाधान निकाला। यह probabilistic data structure false positives allow करता है लेकिन false negatives नहीं। इससे filtering process में significant speedup मिला। नया implementation customers के लिए smooth experience प्रदान करता है।

स्रोत

incident.io — मूल लेख पढ़ें →