import-sample

Import flow

Import flow with data validation

Common Architectures

Layer Architecture

  • Popular for web development

Layer Architecture

Hexagonal Architecture

  • Suitable for Import Flow

Hexagonal Architecture

Based on the flow, there are 4 main components (4 main ports):

  • Reader. Adapter Sample: File Reader
  • Validator. Adapter Sample: Schema Validator
  • Transformer. Adapter Samples: Delimiter Transformer, Fix Length Transformer
  • Writer. Adapter Samples: Mongo Writer, SQL Writer (insert, update, upsert...)