Interview guides · Appfolio
Appfolio Software Engineer Interview Guide
Appfolio Software Engineer interview guide: reported rounds, questions and how candidates describe the process.
The 60-second brief
Appfolio hires Software Engineers; this guide collects what candidates report about the process.
This guide is scoped to a Software Engineer candidate at Appfolio.
Focus areas
- System Design
- Live Coding
- Ruby on Rails
The Appfolio interview process
Appfolio candidates report 4 rounds over 3-5 weeks. The stages below are what candidates describe, not a published process.
Phone Screen
Initial 30-minute call with a recruiter to assess background, salary expectations, and general fit.
What to demonstrate
- Initial 30-minute call with a recruiter to assess background, salary expectations, and general fit
- Depth in System Design
How to prepare
- Be able to walk your CV end to end in two minutes, and say why this company specifically.
- Have your salary expectations, notice period and location constraints ready, and ask for the rest of the loop in writing.
Conversational Interview
30- to 60-minute interview with an Engineering Manager or Director, focusing on behavioral questions and high-level technical discussions.
What to demonstrate
- 30- to 60-minute interview with an Engineering Manager or Director
- Focusing on behavioral questions and high-level technical discussions
How to prepare
- Answer aloud and timed: How do you identify code smells in a legacy application, and what specific steps do you take to refactor them?
- Answer aloud and timed: Walk through how you would model a property management system with owners, tenants, and maintenance requests.
Coding Screen
1-hour coding interview via a shared platform, pairing with a senior engineer to solve a data structure or algorithmic problem.
What to demonstrate
- 1-hour coding interview via a shared platform, pairing with a senior engineer to solve a data structure or algorithmic problem
- Depth in System Design
How to prepare
- Answer aloud and timed: Explain your approach to writing unit tests and how Test-Driven Development (TDD) influences your design choices.
- Answer aloud and timed: Find the most frequent element in an array and discuss how to achieve optimal time complexity.
Virtual Onsite Loop
Final stage consisting of three to four back-to-back 1-hour interviews covering coding, Object-Oriented Design, system architecture, and behavioral assessments.
What to demonstrate
- Final stage consisting of three to four back-to-back 1-hour interviews covering coding, Object-Oriented Design, system architecture, and behavioral assessments
- Depth in System Design
How to prepare
- Answer aloud and timed: Given a raw data stream, write a function to aggregate and summarize transactions efficiently.
- Answer aloud and timed: Solve a string parsing problem using HashMaps and arrays while maintaining readable code structure.
Where candidates lose points
Prioritize Code Readability and Structure
Avoid writing monolithic functions during live coding. Break your solution into small, well-named helper methods that demonstrate clean object-oriented principles.
Clarify Edge Cases Before Coding
Take the first 5 to 10 minutes of a coding session to talk through inputs, edge cases, and expected outputs before writing any implementation logic.
Do not skip talking through your thought process
Interviewers at Appfolio assess your communication and pair-programming style just as closely as your final working solution.
Brush Up on Object-Oriented Fundamentals
Be prepared to discuss object-oriented design choices, inheritance vs. composition, and how to write maintainable code that accommodates future feature changes.
Questions & practice
Find the most frequent element in an array and discuss how to achieve optimal time complexity.
Medium · Algorithms & Data Structures
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Given a raw data stream, write a function to aggregate and summarize transactions efficiently.
Medium · Algorithms & Data Structures
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Solve a string parsing problem using HashMaps and arrays while maintaining readable code structure.
Medium · Algorithms & Data Structures
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Discuss sorting algorithms, their respective time and space complexities, and when you would choose one over a
Medium · Algorithms & Data Structures
Discuss sorting algorithms, their respective time and space complexities, and when you would choose one over another.
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Given a matrix representation of pixel data, toggle specific bit patterns while maintaining memory efficiency.
Medium · Algorithms & Data Structures
Approach
- Say what the runtime actually does before reasoning about the code.
- Name what is shared across threads and what owns each piece of state.
- Identify the window where an invariant is briefly untrue.
- Distinguish a value from a reference to it, and say which one you handed out.
Follow-up
- What happens if two callers reach this at the same time?
- Where could this allocate more than you expect?
Give an example of how you worked with a product manager to break down a large, ambiguous technical problem in
Medium · Behavioral & Past Project Engineering
Give an example of how you worked with a product manager to break down a large, ambiguous technical problem into smaller iterations.
Approach
- Restate the input: its shape, its size, and what is guaranteed about it.
- Name the brute-force solution and its complexity before improving on it.
- Choose the data structure from the access pattern, not from familiarity.
- State the target complexity and say which constraint rules the naive version out.
Follow-up
- How does this change if the input no longer fits in memory?
- What is the worst case, and how likely is it on real data?
Explain why the owner filter ignores the listing index
Medium · composite index · query plans · sort elimination
The only index on resource is (tenant_id, status, updated_at DESC, resource_id DESC). A new endpoint returns one user's resources across all statuses, newest created first: WHERE tenant_id = $1 AND owner_user_id = $2 ORDER BY created_at DESC LIMIT 20. On a tenant with 2M rows it takes 900 ms and EXPLAIN shows a sort above a large scan. Explain precisely why the existing index cannot serve it, give the index that can, and state which of these the new index still will not help: owner_user_id alone across tenants; the same query ordered by updated_at. PostgreSQL 16.
Approach
- Separate the two jobs an index does. For filtering, a composite btree is seekable only on a left prefix, so with no predicate on status the scan can at best range over tenant_id and test owner_user_id per row; PostgreSQL 16 has no btree skip scan to jump the unconstrained column.
- For ordering, the index is sorted by (status, updated_at) within a tenant and not by created_at, so the LIMIT cannot stop early: every matching row is read and then sorted. That is the 'Sort Method: top-N heapsort' line, and it is why the plan reads 2M rows to answer with 20.
- Derive the replacement from the access path — equality, equality, then the ordering column: CREATE INDEX CONCURRENTLY ON resource (tenant_id, owner_user_id, created_at DESC). The scan seeks to the (tenant, owner) range and walks 20 entries in order, so the Sort node disappears along with the row-read.
- Treat INCLUDE (title, status) as conditional, not free. An index-only scan still visits the heap for any row whose page is not marked all-visible, so on a table taking 1.2k writes/second the win depends on autovacuum keeping the visibility map current, and the wider index costs more on every insert.
Follow-up
- 90% of rows are status='active'. Would a partial index WHERE status = 'active' change your answer, and for which of the three queries?
- A dashboard runs this for 40 owners in one page load. What changes about the design?
Hold a per-tenant active cap against concurrent creates
Hard · write skew · isolation levels · constraints
A tenant on the standard plan may hold at most 50 resources with status='active'. The create handler runs SELECT count(*) FROM resource WHERE tenant_id = $1 AND status = 'active', compares to 50, then inserts. Two creates arrive 3 ms apart on different instances and the tenant lands at 51. Name the anomaly, say whether PostgreSQL 16 READ COMMITTED or REPEATABLE READ prevents it and why, then give an implementation that holds the cap at READ COMMITTED with the exact statements. Finally, say what changes when the cap is 'at most one running export per tenant' on job_run.
Approach
- Name it: write skew. The two transactions read an overlapping set and write disjoint rows, so there is no row-level conflict for the engine to detect and each commit is individually legal.
- Rule out the levels precisely. READ COMMITTED takes a fresh snapshot per statement and takes no lock on the counted rows, so both see 49. PostgreSQL's REPEATABLE READ is snapshot isolation: it removes non-repeatable reads and phantoms within the snapshot but still admits write skew, because the anomaly is not a re-read of a changed row, it is a read of a set that a concurrent transaction invalidates. Only SERIALIZABLE closes it, by tracking the read dependency and aborting one transaction with SQLSTATE 40001 — a guarantee that exists only if the application re-runs the whole transaction from the read.
- Convert the set predicate into a single-row conflict: keep tenant.active_resource_count and run UPDATE tenant SET active_resource_count = active_resource_count + 1 WHERE tenant_id = $1 AND active_resource_count < 50 in the same transaction as the INSERT. Zero affected rows is the cap, returned as 409. The row lock serialises the decision at any isolation level, and contention is bounded to one tenant's row — which is also the fair-scheduling unit, unlike a global counter that would convoy every tenant behind one row.
- State the cost you just took on: a counter is a second source of truth that can drift, so every path that changes status must adjust it inside the same transaction, and a periodic reconciliation has to exist, with resource_revision as the authority for what the count should have been.
Follow-up
- A resource moves from archived back to active. Which statements change, and what breaks if the counter update and the status change land in different transactions?
- The cap becomes plan-dependent and a plan can change mid-month. Where does the number 50 live, and who reads it?
Design a board game state checker (e.g., a Sudoku board validator or game state logic engine).
Medium · Object-Oriented Design & Code Maintainab
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
Implement a Roman numeral converter with clean class structure and robust error handling.
Medium · Object-Oriented Design & Code Maintainab
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
How do you identify code smells in a legacy application, and what specific steps do you take to refactor them?
Medium · Object-Oriented Design & Code Maintainab
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Walk through how you would model a property management system with owners, tenants, and maintenance requests.
Medium · Object-Oriented Design & Code Maintainab
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Explain your approach to writing unit tests and how Test-Driven Development (TDD) influences your design choic
Medium · Object-Oriented Design & Code Maintainab
Explain your approach to writing unit tests and how Test-Driven Development (TDD) influences your design choices.
Approach
- Clarify what is being asked and what a complete answer contains.
- State your assumptions explicitly before working the problem.
- Say what you would check first and why it is the highest-information step.
- Work from the requirement backwards to the design.
Follow-up
- What assumption would you test first?
- How would you know your answer was wrong?
Design a real-time messaging and notifications system capable of delivering millions of emails and SMS alerts
Medium · System Design & SaaS Architecture
Design a real-time messaging and notifications system capable of delivering millions of emails and SMS alerts daily.
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
How would you design a multi-tenant SaaS application to ensure complete data isolation between accounts?
Medium · System Design & SaaS Architecture
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
Walk through an architecture for integrating third-party systems like Salesforce, NetSuite, or payment gateway
Medium · System Design & SaaS Architecture
Walk through an architecture for integrating third-party systems like Salesforce, NetSuite, or payment gateways via APIs.
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
Describe how you would build a data streaming pipeline to support real-time analytics dashboards.
Medium · System Design & SaaS Architecture
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
How do you balance immediate feature delivery with long-term architectural stability when building core servic
Medium · System Design & SaaS Architecture
How do you balance immediate feature delivery with long-term architectural stability when building core services?
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
Walk me through a technically complex project on your resume, detailing your specific contributions and archit
Medium · Behavioral & Past Project Engineering
Walk me through a technically complex project on your resume, detailing your specific contributions and architectural trade-offs.
Approach
- Fix the scope first: who calls this, how often, and what they do when it fails.
- Name the read and write paths separately; they rarely have the same bottleneck.
- Choose a partition key and say what query it makes expensive.
- State the consistency you need, and where you are willing to be stale.
Follow-up
- What breaks first when traffic grows ten times?
- How does this behave when that dependency is down for an hour?
One log partition stops advancing while the others drain
Easy · poison message · head-of-line blocking · consumer lag
Search results for a subset of tenants are hours stale; the rest are current. The projection consumer reports lag of zero on 15 of 16 partitions and 400,000 on one. Its error rate is flat and its CPU is idle. outbox_event has no pending rows older than a second, so the relay has published everything it holds. Identify the mechanism, give the ordered checks, and state what you do in the first ten minutes versus what you change permanently.
Approach
- Read the lag distribution first. A slow consumer lags everywhere; zero on fifteen partitions and 400,000 on one is not throughput. Idle CPU on the stuck partition means the consumer is not advancing its offset at all, which points at one message it cannot get past rather than at a rate problem.
- Exonerate the producer before touching the consumer. No pending outbox rows older than a second means the relay published, so the event exists in the log. This separates never sent from sent and never applied, which are different code paths and usually different owners.
- Read the message at the stuck offset and the handler's log lines for its event_id. A flat error rate with no progress has two explanations and you must distinguish them: the handler is throwing and the retry loop is swallowing it, or the handler is blocking on something and never returning. Idle CPU with no error lines favours the second.
- Mitigate before diagnosing further. Move the offending event to a dead-letter store and commit the offset past it. Adding consumers does nothing here, because a partition is consumed by exactly one member of the group, and the blast radius is every aggregate hashed to that partition, not only the aggregate that produced the bad event.
Follow-up
- The dead-lettered event carried aggregate_version 7 and the projection had applied 6. What must the replay do differently if 8 and 9 landed in the meantime?
- How do you show staleness to the user while the partition is behind, given the API already returns the projection's watermark?
Suggested practice checklist
Built from the rounds and topics Appfolio candidates report.
Day 1 — Map the Appfolio loop
- Write out the reported sequence: Phone Screen, Conversational Interview, Coding Screen, Virtual Onsite Loop.
- For each round, write one sentence on what it is judging, from the description above, and mark the one you are least ready for.
Deliverable: A one-page map of the 4 reported rounds, with the weakest marked.
Day 2 — Work System Design
- Spend the session on System Design, which Appfolio candidates report being tested on.
- Write one worked example in System Design and time yourself on it.
Deliverable: One timed worked example in System Design.
Day 3 — Work Live Coding
- Spend the session on Live Coding, which Appfolio candidates report being tested on.
- Write one worked example in Live Coding and time yourself on it.
Deliverable: One timed worked example in Live Coding.
Day 4 — Work Ruby on Rails
- Spend the session on Ruby on Rails, which Appfolio candidates report being tested on.
- Write one worked example in Ruby on Rails and time yourself on it.
Deliverable: One timed worked example in Ruby on Rails.
Day 5 — Answer out loud: Object-Oriented Design & Code Maintainability
- Answer aloud, timed: Design a board game state checker (e.g., a Sudoku board validator or game state logic engine).
- Answer aloud, timed: Implement a Roman numeral converter with clean class structure and robust error handling.
Deliverable: Spoken answers to 2 reported Object-Oriented Design & Code Maintainability question(s), under time.
Day 6 — Answer out loud: Algorithms & Data Structures
- Answer aloud, timed: Find the most frequent element in an array and discuss how to achieve optimal time complexity.
- Answer aloud, timed: Given a raw data stream, write a function to aggregate and summarize transactions efficiently.
Deliverable: Spoken answers to 2 reported Algorithms & Data Structures question(s), under time.
Day 7 — Answer out loud: System Design & SaaS Architecture
- Answer aloud, timed: Design a real-time messaging and notifications system capable of delivering millions of emails and SMS alerts daily.
- Answer aloud, timed: How would you design a multi-tenant SaaS application to ensure complete data isolation between accounts?
Deliverable: Spoken answers to 2 reported System Design & SaaS Architecture question(s), under time.
Behavioural preparation
Behavioural rounds judge the decision you made and what it cost.
Describe a time when a production release introduced a defect. How did you diagnose, resolve, and prevent it f
Medium · Behavioral & Past Project Engineering
Describe a time when a production release introduced a defect. How did you diagnose, resolve, and prevent it from recurring?
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
How do you handle a situation where an interviewer or teammate suggests an alternative approach to your code d
Medium · Behavioral & Past Project Engineering
How do you handle a situation where an interviewer or teammate suggests an alternative approach to your code during a session?
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?
Describe how you maintain work-life balance while managing high-priority engineering deliverables.
Medium · Behavioral & Past Project Engineering
Approach
- Pick a story where you made the decision, not one where you watched it.
- State the situation in two sentences and spend the rest on the reasoning.
- Give the blast radius: what could have broken, and what you measured.
- Name the disagreement and how you resolved it with evidence.
Follow-up
- What would you do differently if you ran that again?
- How did you know your change caused the improvement?