Say you need to integrate a legacy system with a modern web application. What strategies would you use to ensure seamless data flow?