How to create a subscription based item in erp e-commerce

I want to create products that can be purchased by end customers via the e-commerce portal on subscription basis.

E.g. Allow user to buy a service for 1 year or 2 year, and the subscription is automatically setup for the next occurance.

E.g. 2 - I want to sell web hosting service on yearly subscription, which can be renewed after completion of the subscription tenure.

Please help me with the above.

Can anyone reply to this, please?
I am not expecting a “No response” status on this. It doesn’t feel nice if things like this happen.