# Paths To Production

<figure><img src="/files/QxcNV5s9XU4C9fL7bD1U" alt="" width="371"><figcaption></figcaption></figure>

As you saw in [Your First Validation](/getting-started/more-csv-and-excel-validation/your-first-validation.md) and [Another Example Part 2](/topics/how-tos/a-longer-example/another-example-part-1.md), there are two ways to use the CsvPath library.&#x20;

* Single csvpath pointing to a single file, simple results
* Multi-csvpath

Both can work in a production setting. The latter is more flexible and offers more capabilities with little additional complexity. We'll focus on the multi-csvpath option.&#x20;

The path to production starts with just getting the simplest possible thing working—a proof of concept. We can quickly sketch that out.&#x20;

As our starting point, here is a high-level view of everything you need to know about the library. (Setting aside how to write csvpaths using the built-in functions, for now).

<figure><img src="/files/sP2dZ1JZWdiP58HbqBc9" alt=""><figcaption></figcaption></figure>

Our goal is to create an automated CSV validation capability. We're not actually picking the right technologies that work for your specific situation, obviously! Writing the minimal implementation code for this is an exercise for you and [Claude](https://claude.ai/). A POC like what we are sketching should be pretty quick.

Here's what we think the simplest-possible thing might be, at least for some companies. *(Apologies to non-AWS users).* Could you do something simpler? Probably. Is reality more complicated. For sure!

<figure><img src="/files/8hIWgRd8zbpsV90yOjR1" alt=""><figcaption></figcaption></figure>

Imagine your CSV files are arriving by SFTP. You need a landing zone for your CSV files and csvpaths. Let's say you use AWS Transfer Family fronting S3. When a file arrives it triggers a Lambda that runs your csvpath validation. This scenario is [similar to this tutorial](https://aws.amazon.com/blogs/storage/customize-file-delivery-notifications-using-aws-transfer-family-managed-workflows/).

<figure><img src="/files/nU7bD6M1CuFVttmJsNTp" alt=""><figcaption></figcaption></figure>

Your Lambda, where CsvPath runs, is pretty simple. (Remembering this is just a sketch to give you ideas). In mostly accurate pseudo-code, it might look like:&#x20;

<figure><img src="/files/73TBxVZOZIgVIVA5Q1OK" alt=""><figcaption><p>Pseudo-code for setting up CsvPaths in an AWS Lambda</p></figcaption></figure>

And we can repurpose the multi-csvpath file from [Another Example, Part 2](/topics/how-tos/a-longer-example/another-example-part-2.md) to stand in for your inbound file validation rules.

<figure><img src="/files/JBWf1jXSeMy9sXtsq0zo" alt=""><figcaption></figcaption></figure>

Adding a simple email giving validation results using SES is an easy add-on. The Web is littered with SES email examples.&#x20;

<figure><img src="/files/8dwgfhYrDGEFEQAJJ7V6" alt=""><figcaption></figcaption></figure>

Likewise, pushing metadata or lines from the Results object into a database would be a straightforward database insert—at least if we're sticking with the [simplest-thing-that-could-possibly-work ethic](https://ronjeffries.com/xprog/articles/practices/pracsimplest/).&#x20;

And that's pretty much all of it. Obviously, some assembly required. As they say, an exercise for the reader.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.csvpath.org/topics/higher-level-topics/paths-to-production.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
