Sobes.tech
Senior

Where did the data come from? Are there logisticians who send the data, and you store it yourselves?

sobes.tech AI

Answer from AI

In real projects, data often comes from different sources, including logistics providers or external systems. When logistics providers send data, the typical process is:

  1. Data reception — via API, files (CSV, JSON), message queues, or other channels.
  2. Validation and transformation — checking correctness, converting to the required format.
  3. Storage — data is stored in a local database or storage for further processing.

For example, if logistics providers send flight schedules, you can receive this data via REST API, parse it, and store it in your database for application use.

In Go, this might look like (simplified):

// Receiving data from logistics providers
resp, err := http.Get("https://logistics.example.com/api/schedule")
if err != nil {
    // error handling
}

var schedules []Schedule
json.NewDecoder(resp.Body).Decode(&schedules)

// Saving to database
for _, s := range schedules {
    db.Exec("INSERT INTO schedules (...) VALUES (...)", s.Field1, s.Field2)
}

Thus, you act as a data integrator, collecting data for further use.

Where did the data come from? Are there logisticians… - sobes.tech