<p>I am working on a POC where I had to containerize a part of application for eg - I need to containerize  &quot;add to cart&quot; functionality in an e-commerce website, I see a various example <a href="https://dzone.com/articles/docker-for-devs-containerizing-your-application" rel="nofollow noreferrer">https://dzone.com/articles/docker-for-devs-containerizing-your-application</a>  to containerize whole application,but how to do for a part of it where my functionalities has dependency on other code parts as well.</p>
<p>Any pointers will be very helpful as I am totally stuck and don't see similar query anywhere else.</p>
<p>Thanks</p>

Anand
<p>IMHO, the first thing you need to do is read more about the concept of <code>microservices</code> and how it works.</p>
<p>Basically, the idea is decouple your monolithic application into as many services as your want and deploy it separate of each other. Each of this parts will comminicate with other parts by API calls.</p>
<p>There are a lot of benefits of using microservices architecture, and there is no the &quot;better way&quot; to do this, it will depends of how your application works and how your team is engaged.</p>
<p>I can recommend you a couple of link about microservices:</p>
<p><a href="https://medium.com/hashmapinc/the-what-why-and-how-of-a-microservices-architecture-4179579423a9" rel="nofollow noreferrer">https://medium.com/hashmapinc/the-what-why-and-how-of-a-microservices-architecture-4179579423a9</a></p>
<p><a href="https://opensource.com/resources/what-are-microservices" rel="nofollow noreferrer">https://opensource.com/resources/what-are-microservices</a></p>
<p><a href="https://en.wikipedia.org/wiki/Microservices" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Microservices</a></p>
