Also DVMs seem like an overly-complex way to reinvent REST APIs lol.

Reply to this note

Please Login to reply.

Discussion

ROFLMAO

Like, why are we doing this complex Nostr interaction to get feed data? Just use an API, bro.

We have over 100k “feedback” events from DVMs on our aggregator that just say something along the lines of “I’m processing your task”

Absurd waste.

I'm not really sure, why it has to have an event. Seems more like a service a client would just offer, outright, as a feature. Not everything needs to generate an event or be a NIP.

The idea is to standardize everything so that nobody has to implement a bunch of proprietary APIs. I certainly get the appeal of that but the design is wasteful and slow.

Lots of the services “offered” by DVMs are just wrapping centralized services with more latency. For example, most search DVMs just use NIP-50 on one or more of the 3 search relay implementations. Using this instead of connecting directly to the relay(s) is so much more work.

With NIP-50:

1. Connect to search relay

2. Open search filter

3. Relay finds matching events and returns them

3. Display returned events

With DVMs:

1. Make a DVM request event

2. DVM makes NIP-50/search API request

3: DVM parses just the event IDs and returns a list of those in a nostr event

4. Client pulls response event and requests event IDs from all relays? Some relays? Only the NIP-50 relay(s) that supplied the DVM with the results?

5. Relay(s) finds matching events and return them

6. Client displays events

🤯

What happened to my numbering…

After 3 comes 4 - you get the idea 😂

I'm going to need to study up more on ElasticSearch

Well I start to like elasticsearch. But I'm still a noob at it :D

Interesting. That is one heck of a stack

Haha I hacked this together. Don't know if it event works right now 😂

Can you check, and fix it, if it doesn't?

#askingforafriend

Yep! As soon as I have some time :)

Btw, I did not read this long thread here. Have to do my reading later :D

#hyperthread

It works! (More or less) Maybe some stuff is not build perfectly fine but it works :)

DVM's go waaaay beyond Topical feeds tho.

Probably one of their worst use cases tbh.

Yes, it's too broad. I could see it adding real value as a sort of "personal search worker" for finding something more unusual than "dev stuff" or "Catholic stuff" or "stuff about biking".

They're more like "categorized computation workers" that you pay cash for.

Any computation, not just filtering kind 1's, that's just one of the categories of things they do.