Giter VIP home page Giter VIP logo

Comments (13)

AndreiG6 avatar AndreiG6 commented on May 18, 2024 4

If anything redis would be better considering it can store in both ram and disk

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 18, 2024 3

iiuc, ZeroMQ is a message queue, how can we find data by key in such system?

BTW, I'm working on using redis as 3rd backend store.

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 18, 2024

Hi, there's no plan to add support for memcached backed persistence, but the contribution is welcomed:)

from nuster.

valentijnvenus avatar valentijnvenus commented on May 18, 2024

Is redis compatible with the memcache-protocol? If so, one could use any stack as long as it is compliant, e.g. incl. couchbase.

@jiangwenyuan any pointers to the c-code you'd suggest studying in more detail?

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 18, 2024

@valentijnvenus Just out of curiosity, why do you need memcached-backed persistence?

Here's some code you might need to look into

https://github.com/jiangwenyuan/nuster/blob/master/include/nuster/nuster.h#L57 for parse nuster in global section

https://github.com/jiangwenyuan/nuster/blob/master/src/nuster/parser.c#L880 for parse nuster rule

https://github.com/jiangwenyuan/nuster/blob/master/src/nuster/cache/filter.c#L116 the entry of request/response, checking key existence

https://github.com/jiangwenyuan/nuster/blob/master/src/nuster/cache/filter.c#L290 caching data

etc

from nuster.

packeteer avatar packeteer commented on May 18, 2024

@valentijnvenus Just out of curiosity, why do you need memcached-backed persistence?

It would be good to have the ability to use Nuster in a cluster setup ie. replicate data to other nodes.
In my use case, I split the traffic 3 ways (for redundancy and load balancing) before it even hits Nuster, which dilutes the effectiveness of any caching

from nuster.

valentijnvenus avatar valentijnvenus commented on May 18, 2024

from nuster.

packeteer avatar packeteer commented on May 18, 2024

fwiw, I think something like ZeroMQ or NNG might be a better fit for this
https://zeromq.org/
https://nng.nanomsg.org/

from nuster.

packeteer avatar packeteer commented on May 18, 2024

oh ok, I was thinking the service would only be used to transfer content between running processes, not used as a backend.
maybe my misunderstanding of Nuster internals?

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 18, 2024

I see, do you mean use that as a sync mechanism?

from nuster.

packeteer avatar packeteer commented on May 18, 2024

yes, exactly

from nuster.

jiangwenyuan avatar jiangwenyuan commented on May 18, 2024

Interesting, thanks for the info:) I would evaluate that along with haproxy peers an other options.

from nuster.

igorescobar avatar igorescobar commented on May 18, 2024

Redis would be a better start in my opinion.

Screenshot 2020-05-23 at 16 17 17

Interest worldwide - last 5 years - Memcached (blue), Redis (Red):
Screenshot 2020-05-23 at 16 19 09

So if you want to start somewhere I would bet on the right horse 😄

from nuster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.