از آنجا که ردیس دیگر یک نرمافزار آزاد نیست و البته همان موقع هم که بود چندان چیز جالبی نبود (دو نقطه دی) قصد دارم پیشنهاد یک نرمافزار آزاد بدهم که ردیس هست اما ردیس نیست! :))
با موفقیت پروژههایی مثل solidcache در روبی، به این فکر افتادم که چرا جای رم از هارد استفاده نکنیم؟ مخصوصا که solidcache دارد پشتش از یک پایگاه دادهای مرسوم (در حال حاضر یکی از سه مورد sqlite یا mysql یا postgres را) استفاده میکند و همین موضوع ایده یک کش مبتنی بر هارد - و به طور خاصتر SSD - را به ذهنم رساند که مسائل مصرف حافظه و برپاسازی ردیس را نداشته باشد و در عین حال سرعت و بازدهی نزدیک به ردیس هم بدهد.
در سطح پروتکل که همان پروتکل ردیس را پشتیبانی کند. اما برای خود کش، به جای یک پایگاه دادهای بیرونی از یک پیادهسازی بهینه B+-tree و Hash tree استفاده شود. البته میشود از همان sqlite و solidcache هم استفاده کرد و صرفا پروتکل ردیس را روی آن آورد. این شکلی هزینه نهایی پیادهسازی کمتر هم میشود. اما احتمالا برای پروژههای بزرگ - به علت محدودیتهای خود sqlite - کارا نباشد.
با این حال در صورتی که از یک hash tree دو مرحلهای به عنوان کلید و یک B+tree به عنوان اندیس استلفاده شود احتمالا بازدهی معقولتری از استفاده از یک پایگاهدادهای مجزا بگیریم زیرا سربار شبکه و سربار خود پایگاه دادهای هم حذف شده و فقط همان قسمتی که مورد استفاده است پیادهسازی شده است.
اما ممکن است بپرسید این B+tree چیست؟ آن را سعی میکنم در مطلبی دیگر مفصلتر توضیح دهم. عجالتا بدانیم که یک ساختمان دادهای بهینهشده برای دسترسی و جست و جوی داده روی انواع دیسکهای سخت است کفایت میکند. یک hash tree اما در واقع نوعی از interval tree است که کلیدهای آن به جای بازههای عددی مقادیر hash هستند. این شکلی پیدا کردن یک کلید در کش مساوی است با هش کردن آن، پیدا کردن جایگاه آن در hash tree و سپس درخواست داده متناظر با آن کلید در B+tree. این شکلی پیادهسازی به شدت ساده و به شدت بهینه میشود.
پیشنهاد دیگر البته آن است که این چیزی که در بالا توضیح دادم در خود solidcache پیادهسازی شود و سپس پروتکل ردیس هم به آن اضافه گردد. این شکلی هم پروژه بالادستی سود میبرد که بسیاری دارند از آن استفاده میکنند و هم ما یک جایگزین آزاد و البته بسیار بهینه برای ردیس داریم که از پارادایم ردیس خارج شده و با هزینههای اجرایی و عملیاتی کمتر همان کارایی را به ما خواهد داد.
عکس مطلب نماگرفتی از readme پروژه solidcache است. همچنین این مطلب اولین بار برای ارائه در دونا نوشته شده است.
Comments
October 21, 2024 06:21
Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking. kinggame
October 28, 2024 12:44
seo
You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog. łóżka piętrowe dla dzieci
October 29, 2024 07:07
seo
Positive site, where did u come up with the information on this posting? I’m pleased I discovered it though, ill be checking back soon to find out what additional posts you include. 1xbet sn
December 25, 2024 14:20
Freezing consideration perhaps it is an understanding to create could possibly help everybody else is having troubles searching though My group is some unclear a lot more i am permitted to get details and even communications information at these. 온라인바카라 먹튀
December 28, 2024 10:47
saud seo
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. situs togel Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. demo slot pg Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. toto Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. situs toto
March 13, 2025 10:05
saud seo
Superior post, keep up with this exceptional work. It’s nice to know that this topic is being also covered on this web site so cheers for taking the time to discuss this! Thanks again and again! toto togel online Superior post, keep up with this exceptional work. It’s nice to know that this topic is being also covered on this web site so cheers for taking the time to discuss this! Thanks again and again! 카드현금화 Superior post, keep up with this exceptional work. It’s nice to know that this topic is being also covered on this web site so cheers for taking the time to discuss this! Thanks again and again! best soccer prediction site Superior post, keep up with this exceptional work. It’s nice to know that this topic is being also covered on this web site so cheers for taking the time to discuss this! Thanks again and again! situs slot gacor Superior post, keep up with this exceptional work. It’s nice to know that this topic is being also covered on this web site so cheers for taking the time to discuss this! Thanks again and again! olxtoto slot login
March 15, 2025 10:39
saud seo
Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. olxtoto bet 100 Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. olxtoto link alternatif Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. olxtoto togel login Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. link alternatif olxtoto
March 27, 2025 08:56
saud seo
Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. olxtoto togel login Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. 1up-conference.com Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. situs slot gacor Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. toto togel online Yes, I am entirely agreed with this article, and I just want say that this article is very helpful and enlightening. I also have some precious piece of concerned info !!!!!!Thanks. 창원 출장마사지