Quick revision
The short answer
Not as a blanket migration. CSV over SFTP is simple, cheap and supported by almost every partner, and many partners cannot change, while APIs and event streams give faster, validated exchange but need effort on both sides. We segment partners by value and capability, offer modern options to those who benefit, and keep file support for the rest. Whatever we decide, we invest in a reliable file ingestion platform, and we justify each change by measuring what the current approach really costs in errors, delays and manual work.
What to remember
In this answer, we saw that CSV over SFTP is simple, cheap and universally supported, while APIs and event streams bring speed and immediate validation at the cost of effort on both sides. Rather than a blanket migration, we segment partners by value and capability, offer modern options where they pay off and keep file support for everyone else. We invest in a reliable file ingestion platform regardless, because files will remain for years and it prepares the way for APIs, and we measure errors, delays and manual work to justify each change.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Not as a blanket migration. CSV over SFTP is simple, cheap and supported by almost every partner, and many partners cannot change, while APIs and event streams give faster, validated exchange but need effort on both sides. We segment partners by value and capability, offer modern options to those who benefit, and keep file support for the rest. Whatever we decide, we invest in a reliable file ingestion platform, and we justify each change by measuring what the current approach really costs in errors, delays and manual work.
Why this question is asked
Many companies run a surprising share of their business on files: nightly CSV drops from suppliers, banks, marketplaces and logistics partners over SFTP. Engineers often see this as legacy to be replaced with APIs or Kafka topics, while business teams see it as the thing that works. Interviewers ask senior engineers this question because the right answer balances technology, partner relationships and money, and avoids both extremes. In this answer, we will look honestly at what CSV over SFTP does well, what APIs and streams add and cost, how to segment partners, why the file platform deserves investment anyway, and how to measure the case for change.
1What CSV Over SFTP Does Well
It is easy to dismiss file exchange, but its strengths are real. Almost every company, from a two-person supplier to a large bank, can produce a CSV file and upload it with SFTP, often from tools they already have: an ERP export, a scheduled script, even a person with a desktop client. There is nothing to develop, no authentication protocol to implement beyond SSH keys, and no availability coupling: if our system is down at 2 a.m., the file waits in the folder.
Files also work well for large, periodic data sets, such as a full price list or a day's transactions, and they give a natural audit record: the file we received is the evidence of what the partner sent. For many partners, especially smaller ones, asking them to build an API client would cost them more than the whole relationship is worth.
2What APIs and Event Streams Add, and What They Cost
APIs and event streams change the timing and the quality of the exchange. With an API, the partner sends an order the moment it exists, and we can validate it immediately and reply with an error the partner's system sees in seconds, not a reject file read the next morning. With event streams, data flows continuously, so stock levels or shipment statuses are minutes old instead of a day old. Both make data contracts explicit through schemas such as OpenAPI or Avro.
The cost is effort on both sides. We must build and operate the API or stream access with authentication, rate limits, versioning, documentation and support. Each partner must build a client, handle retries and errors, and keep it running. Some partners will happily do it; others have no developers at all. Forcing everyone onto APIs would mean losing partners or paying for their integration work.
| Aspect | CSV over SFTP | API or event stream |
|---|---|---|
| Partner effort | Very low | Build and run a client |
| Latency | Hours to a day | Seconds to minutes |
| Validation feedback | Reject file, next run | Immediate error response |
| Large periodic data | Natural fit | Possible, needs paging or batching |
| Coupling | None at transfer time | Availability and versioning |
| Our cost | Ingestion platform | API platform, onboarding, support |
3Segmenting Partners by Value and Capability
The practical answer is to treat partners differently. We place each partner on two axes: how much value faster, validated exchange would bring (order volume, revenue, how time-critical the data is, how often errors cause problems) and how capable they are of integrating (their own developers, existing API experience, platform vendors that already support our API).
High-value, high-capability partners, such as a large marketplace that sends thousands of orders an hour, are the first candidates for APIs or streams, and they often want it themselves. High-value, low-capability partners might get help, such as a connector for the platform they use, or a simple upload API with immediate validation as a middle step. Low-value partners stay on files, and that is a deliberate decision, not neglect. We offer the modern options to everyone, but never remove file support for those who need it.
- Would faster, validated data bring real value?YesCheck capabilityNoKeep files on the ingestion platform
- Can the partner integrate with an API or stream?YesOffer API or stream onboardingNoOffer help: connector or upload API
- Keep file support as a fallbacknobody is forced off files
- Measure errors, delays and manual work after the move
4 steps in order. Play them, or step through them one at a time.
4Investing in the File Ingestion Platform Anyway
Whatever the mix, files will be with us for years, so the file path must be reliable. Today many file integrations are one-off scripts: each partner has a cron job, its own parsing code and its own idea of error handling, and failures are discovered when someone complains. A shared ingestion platform gives every file the same treatment: arrival monitoring, checksums against duplicates, a versioned schema per format, header and row validation, reject files with reasons, idempotent loading, automatic summaries to partners and dashboards for operations.
This investment pays twice. It immediately reduces errors and manual work for every file partner, and it makes the later move to APIs easier, because the validation rules and data contracts already exist in one place. An API is then just another way to deliver data into the same validated pipeline.
5Measuring the Cost of the Current Approach
Moving partners is an investment, and it needs a case. We measure what the current exchange costs today. Errors: how many files fail or contain rejects each month, and what the bad data costs downstream, such as wrong prices or missed orders. Delays: how much business value is lost because data arrives a day late, for example overselling stock that was already gone. Manual work: hours spent by operations chasing late files, fixing formats and re-running imports.
Suppose operations spends 120 hours a month on file problems with ten partners, and stock data a day old causes a measurable number of cancelled orders with the three biggest marketplaces. Those numbers tell us where an API pays back, and they give the business a clear reason to fund partner onboarding. After each move we measure again, so the next decision is based on results rather than enthusiasm.
6Follow-up questions
Is SFTP itself still secure enough?
Yes, when it is operated well: key-based authentication, separate accounts and folders per partner, encryption at rest for the landing area, file integrity checks, and rotation of keys. The weaknesses are usually operational, such as shared accounts or old keys, not the protocol.
What is a good middle step between files and full APIs?
An upload API: the partner sends the same CSV over HTTPS to an endpoint that validates it immediately and returns errors in the response. It reuses their existing export, removes the SFTP delay, and gives them instant feedback, with very little development on their side.
How do you persuade a partner to move?
Show them what they gain: faster settlement, fewer rejected orders, immediate error messages instead of next-day reports, and less support effort. Partners move when it solves their problems too, and a well-documented API with a sandbox makes the step small.
7Conclusion
In this answer, we saw that CSV over SFTP is simple, cheap and universally supported, while APIs and event streams bring speed and immediate validation at the cost of effort on both sides. Rather than a blanket migration, we segment partners by value and capability, offer modern options where they pay off and keep file support for everyone else. We invest in a reliable file ingestion platform regardless, because files will remain for years and it prepares the way for APIs, and we measure errors, delays and manual work to justify each change.
Open with
I wouldn't run a blanket migration. CSV over SFTP has real strengths: every partner can do it with tools they already have, there's no availability coupling, and it fits large periodic data.
Then, if they want more
Many partners can't build API clients, and forcing them would cost us partners or integration money. APIs and event streams do give faster data and immediate validation, so they're worth it where that matters.
So I'd segment partners by value, meaning volume, revenue and how time-critical the data is, and by capability, meaning whether they have developers or a platform that already supports us.
High-value, capable partners get offered APIs or streams; high-value partners with low capability get help, like a connector or a simple upload API with immediate validation; everyone else stays on files, deliberately, and nobody loses file support.
Regardless of the mix, I'd invest in a proper file ingestion platform with arrival monitoring, schema validation, reject files, idempotent loading and partner notifications, because files will be around for years and the same validation pipeline can sit behind the APIs later.
And I'd justify each move with measurements of what the current approach costs in errors, delays and manual hours, and measure again afterwards.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Much of your company's partner data exchange still runs on CSV files over SFTP. Should...": https://scrivio-interview-library.netlify.app/java/document-libraries/ab97181065/