Err402 nginx P2PK locked ecash benchmark
https://github.com/DhananjayPurohit/ngx_l402
Client/Customers (left): Sending ecash locked to Servers Pubkey (simulating 32 tx/sec to nginx err402 endpoint)
Server (middle): Collecting ecash, once in a while redeem over lightning to the Providers LNURL (BOLT12 soon)
Provider (right): Get the earned sats via lightning
#soveng
nostr:nprofile1qqsg8kve59yxyhpa9wupntesvnq0dgfd0k5g769jc6fzrua8gct36xgpzpmhxue69uhkumewwd68ytnrwghszrnhwden5te0dehhxtnvdakz7p5n66j
nostr:nprofile1qqsqfh90y4fgqxfh68pqk6ddlztydusm20qhjp38r53v005metdedsqpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfdu0m9g8x
nostr:nprofile1qqs9pk20ctv9srrg9vr354p03v0rrgsqkpggh2u45va77zz4mu5p6ccpzemhxue69uhk2er9dchxummnw3ezumrpdejz7qgkwaehxw309a5xjum59ehx7um5wghxcctwvshsfmrzrk
https://blossom.primal.net/fe693c5713b1e8ed60e70529ba1dad0a8803922c001c1410391eeaf19001d58a.mp4
Login to reply
Replies (11)
amazing, nice. do you know what the bottleneck is? could it go even faster?
Is it easy to setup different prices for different endpoints?
Yes, we should get much faster. Collecting P2PK ecash takes less than1ms.
In this setup:
bottleneck 1) client-sever: 100ms latency (wlan, vpn, spain to germany) nginx on vps / 2 cores.
bottleneck 2) coinos mint: limits to 1.000 proofs each request.
yes, default ms sats each endpoint (nginx.conf), and you can update via Redis “SET /protected 15000” default settings on the fly.
@DhananjayPurohit
correct me, if I am wrong.
I have an idea but maybe someone smarter can flesh it out:
- Create some kind on nostr where we can broadcast these endpoints for discoverability
- Is it possible to give some receipt that I can use to prove I used the API that way any reviews sent on nostr can be verified as real users?
So that way I can search for API's over nostr and see that users who have spent a lot of money seem to be very happy with the service.
Impressive work bro solid integration and clear pipeline respect the hustle
Can I help with the project somehow?
sheeeeeesh – imagine this with the new cashu channels
nostr:nevent1qvzqqqqqqypzpafmnkg63ngh0762rncgrgdk6kr4ngupaufq5lz6rrqwwr9wszvrqqs0x4x4g4jhugs44mdqwwe7c52lj0m63qsus7f68kvvhx4fs4jf8cq2h70fc
Contributions are always welcome!
👉 https://github.com/DhananjayPurohit/ngx_l402
You can also build and list your own API on 402.markets:
👉 https://402.markets/
Exactly right 👍
Can’t wait to experience this feature on 402.markets !