Comments (6)
Just to add context to above #1. Varnish seems like the go to tool for caching images. unfortunately it doesnt support https etc without an additional paid service or free 3rd party app next to it to handle the https and rerouting... ideally Garnet could cache images itself (Garnet is so fast that it meets 99.9999% world users speeds/perf needs so extra capabilities seems more important than more performance), worse case Garnet could act like 3rd party app handing https and redirect to varnish. in my perfect world Garnet would plug into Ambry (linkedin document store). i.e. would be nice to have a single caching solution.. long term id like to sit either nginx or more preferable axum or salvo (rust) web servers in front, and for DB connection into postgres via pgbouncer.
from garnet.
Thanks for your interest in Garnet!
Currently supported APIs are documented here https://microsoft.github.io/garnet/docs/commands/api-compatibility that can help determine if your scenarios could be handled out of the box.
For any additional scenarios that are not directly supported, it is also possible to add custom logic as explained here https://microsoft.github.io/garnet/docs/dev/custom-commands
Furthermore, the roadmap section https://microsoft.github.io/garnet/docs/welcome/roadmap talks about the next set of features that are being planned.
Please feel free to post any further specific questions on how Garnet can help in your scenario.
from garnet.
For inventory counting, another db - tigerbeetle (zig from memory) has other important features like reservation (and of course the releasing of that reserved stock/inventory).. so if you were to implement an inventory counting capability (incl reservation, increment, decrement etc.) it would be great if it could communicate back to postgresql and/or tigerbeetle as well as subscribe to publication for updates etc. (e.g. sale closed, stop accepting purchases as example). or worse case embed tigerbeetle until a capability exists :)
Thank you for your information/response above.
from garnet.
- You can cache images or any binary data in Garnet. You would use the GET and SET API to do so.
- Increment and decrement are supported, and it seems the dragonfly example you mention would work out of the box. Please try out and let us know if you run into API gaps.
- Many users use Garnet and Redis in front of database like Postgres. You will be responsible for managing cache consistency and invalidation outside the system.
- Pub/sub is available in Garnet.
from garnet.
You can cache images or any binary data in Garnet. You would use the GET and SET API to do so.
Increment and decrement are supported, and it seems the dragonfly example you mention would work out of the box. Please try out and let us know if you run into API gaps.
Many users use Garnet and Redis in front of database like Postgres. You will be responsible for managing cache consistency and invalidation outside the system.
Pub/sub is available in Garnet.
Hello, thank you for detailed reply. Just to clarify
- Any limits to caching image e.g. size? anything which might impact garnet performance to be aware of.
- When you say user use Garnet and Redis infront.. are you saying they are used side by side in parallel/same time? if so, could you please clarify why someone would use Redis and not Garnet? Garnet seems to have far greater performance and extensive APIs.. so not clear to me why someone might use Redis. what scenario for example?
Lastly, thank you again for taking time to reply to earlier questions, it is greatly appreciated, especially the quick response the team has provided.
from garnet.
- Any limits to caching image e.g. size? anything which might impact garnet performance to be aware of.
You can cache any value size up to around 500MB. You will need to adjust the page size when configuring Garnet, see --page
option here.
- When you say user use Garnet and Redis infront.. are you saying they are used side by side in parallel/same time? if so, could you please clarify why someone would use Redis and not Garnet? Garnet seems to have far greater performance and extensive APIs.. so not clear to me why someone might use Redis. what scenario for example?
Oh, I just meant you can use any cache-store you prefer (Garnet, Redis, Dragonfly, or whatever) as the caching layer in front of a database. It is up to you to decide what to use - we would of course like you to try Garnet to see if it fits your scenario.
from garnet.
Related Issues (20)
- incr a non-number key-value should return error
- API Coverage - Implement SMOVE HOT 6
- API Coverage - Implement SRANDMEMBER
- SPOP with count bug HOT 6
- Char that occupy multiple bytes in string as key or value would make GarnetClient.ExecuteForStringResultAsync() unable to continue execution. HOT 4
- Redundant "Clear" in many buffer allocations
- 微软缓存
- KEYS redis command not working? HOT 5
- Any plans for support for equivalents to RedisSearch and RedisJson modules? HOT 1
- Timeout after particular command sequence HOT 4
- Secret comparisons should be constant time HOT 1
- Passwords are hashed using SHA256 HOT 3
- Metrics HOT 2
- Using ZRANGEBYSCORE with a range that starts after the max score causes an error HOT 2
- Ajust website Intro - Connect with Redis clients
- SETNX is not implemented HOT 7
- API Coverage - Implement LSET
- API Coverage - Implement LMPOP HOT 2
- [BUG]: LMOVE operation direction parse error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garnet.