I am interested in implementing a micro-transaction “paywall” that will allow anonymous users access to a web application that I am building. Each unique visit to the home page of the application would trigger an api call that will generate an invoice for that specific session and present the user with a QR code for them to make a payment that will grant access for that particular session.
My question is, how many invoices can realistically be monitored with SubscribeSingleInvoice
before this would be a problem? Like if 100,000 people simultaneously visited the app, that would be 100,000 unique invoices generated and subscribed to… Which seems like that could be a bad scene… Though I would be setting these invoices to expire some-what shortly, like 5-10 minutes, assuming if they haven’t paid within that time frame, they’re most likely not going to be paying at all.
Are there any good tutorials to recommend for setting up a paywall like this? I have been googling and googling and not really finding anything useful…… And the lightning documentation is a bit vague and lacking specifics.
Also, a side question is, to do this, is it really necessary to run a bitcoind backend? I was reading about neutrino, and saw LND lets you use that as a backend.. Since I am only interested in generating invoices and microt-ransactions and detecting when they have been paid, is it possible to use neutrino for this so that my app can have less of a heavy infrastructure footprint?