Data Engineering Best Practices

Knowledge Sharing Session

One Team
One Repo
One Airflow

Knowledge Sharing Session
Knowledge Sharing Session

​Benefits

  • Manging one Repo 
  • Manging one Airflow instance
  • knowledge sharing

 

Challenges​

Pipeline Architecture

Knowledge Sharing Session

Decouple Orchestrator from Pipeline Logic

Knowledge Sharing Session
  • Keep Dags as simple as possible
  • Set retry delay
  • Monitoring mechanism
  • Set Timeout
Knowledge Sharing Session

Dynamically Load Env Related Configuration

Knowledge Sharing Session

Dynamically Load Env Related Configuration

Knowledge Sharing Session

Shared Services

Knowledge Sharing Session

Use Singelton if you connect to Database

Knowledge Sharing Session

Query Manager

Knowledge Sharing Session

Runner Class

Knowledge Sharing Session

Development

Staging

Production

Env

Knowledge Sharing Session
Knowledge Sharing Session
  • Design, Develop and test on Dev env
  • Deploy & Test on Staging   (p9cpwphd1e1.corp.ad.ctc)
  • Deploy to Production   (p9cpwpds6e1.corp.ad.ctc)
Knowledge Sharing Session

Setup Dev Env

  • Install Linux on Windows
  • Create env with Conda or Virtualenv
  • Connect

Deployment

Knowledge Sharing Session

We Use Fabric for deployment

Knowledge Sharing Session

We Use Fabric for deployment

Knowledge Sharing Session

Deploy any branch on any Env

Knowledge Sharing Session

Questions

Knowledge Sharing Session
Made with Slides.com