I will never understand why some relays limit filters in 12/subscription.. so low...

Reply to this note

Please Login to reply.

Discussion

Why do you need that many ? I think damus uses max like 6

Sometimes I do per user EOSEs, so you have to give a since field that is different for every user you are interested. In Notifications, we can display up to 50 users as a time. So, 50 filters for metadata since last time.

I'm also surprised Nostros also requires maximum 5-6, what's the quantity of subscriptions you were thinking on?

We do per user, per event EOSEs.. so tons of filters to place a different "since" for each event/user.

I'm curious now šŸ™‚ do you have any example on the code?

I limit the relay to 12-20 active subscriptions! more than that my android is slow

Tragedy of the commons comes to mind when I read these kinds of misdirected comments.

Relays are finite resources. The better question is why your specific algorithm needs that many. From that we can then have a conversation.

What's the difference in costs from 10 to 30 filters per sub?

Why not 300 filters?

Just because I don't think that is needed. 10 is just way to low for today's use cases.

The way the conversation should go is:

- I, Victor, have a particular use case for having more than 10 filters

- I find out relays have limits, let me contact relay devs to get those limits increased

- Relay devs hear you out and increase your limits

Instead we get this useless conversation and nobody is winning šŸ„‡

I am not sure that works. First because I don't know which relays our users are trying to access. It's all one by one, after a lot of debug time. Quite impractical these days.

And second, relays are seeing that Amethyst hitting their rate limits all the time. So they already have that information. They shouldn't need me going there and make the life of their users better.

Btw, relays are getting hit no matter what. The app will send 10 filters, then the next 10, then the next 10 as soon as each receives an EOSE... So i don't think people are saving any costs by limiting to 10... It just takes longer to get everything.

ā€œCosts savingsā€ is the wrong assumption here

12 subscriptions are too few. I set it to 50 on my relay, because it seems that some clients will use more subscriptions. If it is below this number, there will sometimes be an error message.

I thought you were talking about the number of subscriptions. I misunderstood.

But bigger number of subscriptions also help... I had to mix unrelated filters into given subscriptions just to avoid the 10 sub limit some relays have.

Have you seen Amethyst hitting your relay limits?

I think the different settings of each relay will indeed bring difficulties to the client. Similarly, relay operators also spend a lot of time to investigate and adjust in order to support different clients. I saw the problem of exceeding the limit before, but I just changed the settings, I havenā€˜t seen what the client is.

I’m testing some clients on iOS now. I havenā€˜t had time to see Amethests yet. Is the subscription ID a 4 character string? I noticed that the requests for this kind of subscription number are quite frequent.

Yep, we trigger new subscriptions when the user scrolls the feed, so they can be quite frequent. But we limit to 250ms update intervals.

We also add the app name and version in the Agent header.

Got it. I’ll trace that later.

How much would you recommend?

30 should be a good number these days, even for heavy clients like Amethyst

I’m keep banging up against this limit in Nos too.

Can you open two connections as a workaround?

Not a good general setting. Other relays will block it when it happens.