Lightning + Golem = Pay per lambda?

Imagine a secure way to host Docker containers with functions (like Amazon Lambda) on the Golem compute platform, combined with Lightning Network, a massively scalable payment platform fast enough to support pay per use billing.

That would be a VERY different kind of deployment and orchestration model.  Perhaps you might submit a Kubernetes/Docker Swarm YAML file and a secure data source, and dynamically direct hosting to the lowest bidder.

What would security have to look like for this idea to work?

Golem Network

    Golem Is The New Way The Internet Will Work 

Golem is a global, open sourced, decentralized supercomputer that anyone can access. It’s made up of the combined power of user’s machines, from personal laptops to entire datacenters.

Anyone will be able to use Golem to compute (almost) any program you can think of, from rendering to research to running websites, in a completely decentralized & inexpensive way.

The Golem Network is a decentralized sharing economy of computing power, where anyone can make money ‘renting’ out their computing power or developing & selling software.

Lightning Network

    Transactions for the Future

Instant Payments. Lightning-fast blockchain payments without worrying about block confirmation times. Security is enforced by blockchain smart-contracts without creating a on-blockchain transaction for individual payments. Payment speed measured in milliseconds to seconds.

Scalability. Capable of millions to billions of transactions per second across the network. Capacity blows away legacy payment rails by many orders of magnitude. Attaching payment per action/click is now possible without custodians.

Low Cost. By transacting and settling off-blockchain, the Lightning Network allows for exceptionally low fees, which allows for emerging use cases such as instant micropayments.

Cross Blockchains. Cross-chain atomic swaps can occur off-chain instantly with heterogeneous blockchain consensus rules. So long as the chains can support the same cryptographic hash function, it is possible to make transactions across blockchains without trust in 3rd party custodians.