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
- Manging one Repo (We can use submodule or Branch Strategy)
- One team one coding style
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
Data Engineering Best Practice
By fartash haghani
Data Engineering Best Practice
- 324