Giter Club home page Giter Club logo

Comments (3)

Giszmo avatar Giszmo commented on June 11, 2024 1

I want to offer a relay for limited/mobile clients, to connect to one relay, only. My relay would track the relay lists of accounts and stream/aggregate relevant events from those.

from strfry.

Giszmo avatar Giszmo commented on June 11, 2024

For me the question is how could one policy plugin instance serve multiple strfry processes? My policy might grow quite heavy and I want to stream from probably more than 30 relays. There should be a better approach than to load and run the plugin 30 times in parallel.

I'm now thinking I could probably stream the 30 relays into one strfry instance without complex polilcy and stream that into my other using the full policy. The first instance would just act as a buffer and delete all events older than an hour.

from strfry.

hoytech avatar hoytech commented on June 11, 2024

@alexgleason - Yes you're right, a strfry instance doesn't know its own relay URL. I guess we could have a config value where you could label an instance and that would get passed in to the policy plugin. I'm not sure, I'd like to hear more about your use-case so we can decide if that's the best approach.

@Giszmo - I am planning on making a strfry router command that would let you stream to/from multiple different relays, and they could all share a single policy plugin instance. I don't have a timeframe in mind for this yet, sorry. So many other things I want to do first. Nice idea about the buffer instance - that would actually probably work pretty well!

from strfry.

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.