Purpose of osgi and sling frameworks in AEM. Why do we need 2 frameworks
<p>I just try to understand what is the main purpose of the sling and osgi frameworks
I have seen in many documents like osgi framework is for bundles and sling is java based web framework. can anyone please explain in detail. and why do we need 2 frameworks for AEM </p>