Interview guides · Paynearme
Paynearme Software Engineer Interview Guide
Paynearme Software Engineer interview guide: reported rounds, questions and how candidates describe the process.
The 60-second brief
A Software Engineer at Paynearme plays a critical role in shaping the technology that powers millions of financial transactions. As a leading fintech platform, Paynearme focuses on simplifying complex payment experiences, allowing businesses to accept cash, cards, ACH, and mobile wallets through a single, unified platform. Engineers in this role do not just write code; they design, scale, and maintain highly secure, reliable systems that process billions of dollars annually. The impact of a Software Engineer at Paynearme is felt directly by both enterprise clients and end consumers. You will work on optimizing payment flows, building robust APIs, and refactoring legacy systems to support rapid growth and high availability.
This guide is scoped to a Software Engineer candidate at Paynearme.
Focus areas
- Code Refactoring
- Code Review
- Reviewing and Explaining Code
The Paynearme interview process
Paynearme candidates report 3 rounds over 3-5 weeks. The stages below are what candidates describe, not a published process.
Recruiter Screen
Initial conversation to align on your background, expectations, and interest in the company.
What to demonstrate
- Initial conversation to align on your background, expectations, and interest in the company
- Depth in Code Refactoring
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.
Hiring Manager Call
Discussion of your technical experience and a light code review or refactoring exercise.
What to demonstrate
- Discussion of your technical experience and a light code review or refactoring exercise
- Depth in Code Refactoring
How to prepare
- Prepare two projects you led end to end, each with the decision you owned and what it cost.
- Have three questions about the team's roadmap and how success is measured in the first six months.
Technical Conversations
Deeper discussions involving peer-level engineers and leadership, analyzing code blocks and system architecture.
What to demonstrate
- Deeper discussions involving peer-level engineers and leadership, analyzing code blocks and system architecture
- Depth in Code Refactoring
How to prepare
- Answer aloud and timed: Describe your ideal software development lifecycle (SDLC) process from requirements gathering to post-release monitoring.
- Answer aloud and timed: How do you balance the trade-off between shipping a feature quickly and ensuring perfect code quality?
Where candidates lose points
Focus on readability over cleverness
When refactoring or discussing code, prioritize simplicity, maintainability, and readability. Avoid over-engineering solutions with overly complex patterns when a simpler approach is more robust.
Think aloud during code reviews
When looking at code blocks with interviewers, talk through your observations immediately. Even if you do not spot every issue right away, sharing your analytical process helps interviewers understand how you think.
Going silent while thinking
Narrate the candidates and why you are discarding them, even in fragments: sorting first would make this a two-pointer scan, but it destroys the original indices, which the output needs. From the other side of the table, a candidate thinking hard and a candidate stuck are indistinguishable until one of them speaks.
Questions & practice
How would you refactor this specific block of legacy code to make it more testable and maintainable?
Medium · Code Refactoring & Review
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?
Walk me through how you would optimize this database query or data-handling block to prevent performance bottl
Medium · Code Refactoring & Review
Walk me through how you would optimize this database query or data-handling block to prevent performance bottlenecks.
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?
Archive a resource graph without breaking live references or recursing
Medium · graph traversal · topological order · tenant isolation
Resources reference other resources within a tenant; for the largest tenant the reference table holds up to 2,000,000 nodes and 8,000,000 edges. Archiving a resource must archive everything reachable from it that nothing outside the set still references, refuse when a live external referrer exists, and terminate when references form cycles, which they legitimately do. Produce the archive order and the refusal list, targeting O(V+E). Say what stops the traversal crossing a tenant boundary, and why recursion is the wrong control structure at this size.
Approach
- Load the subgraph with the tenant predicate on both endpoints of the edge, not only on the side you started from. Scoping the left table alone is the classic cross-tenant leak: one mis-entered edge then pulls another tenant's resources into the traversal and, worse, into the archive.
- Traverse iteratively with an explicit stack. A 2,000,000-node graph can hold a chain deep enough to exhaust a native stack in the low tens of thousands of frames, and that failure is a process crash rather than an error you can return.
- Treat cycles as data rather than corruption: compute strongly connected components with Tarjan in O(V+E) using its own explicit stack, then condense. The condensation is a DAG, so a topological order over it gives the archive order, and every member of a component archives in one transaction because no order within a cycle is valid.
- Decide refusals with reverse edges. A candidate is archivable only if every in-edge originates inside the candidate set, so build the transpose or count in-degrees restricted to the visited set, and emit each blocked resource with the id of the external referrer, which is the only part of the answer an operator can act on.
Follow-up
- The graph is read in one query and the archive writes a minute later. What can change in between, and how do you make the write safe?
- The candidate set is 400,000 resources. Is that one transaction, and if not, what does a half-finished archive look like to a reader?
Stop tag and share joins from fanning out a page
Medium · join fan-out · semi-joins · many-to-many
resource_tag is (resource_id, tag_id) with PK (resource_id, tag_id); resource_share is (resource_id, shared_with_user_id, permission). The tagged-and-shared listing inner-joins resource to both, filters tenant_id, tag_id = ANY($2) and shared_with_user_id = $3, orders by updated_at DESC and takes 50. Pages come back with fewer than 50 distinct resources and the total in the header is far too high. Explain the row multiplication, rewrite both the page query and the count query so each is correct, and name the index each one needs. PostgreSQL 16.
Approach
- Do the arithmetic against the predicates that are actually there. An inner join emits one row per matching child row, and both joins are filtered: tag_id = ANY($2) admits only the requested tags, shared_with_user_id = $3 admits one user's share rows. So a resource holding three of the requested tags and shared with $3 once yields three rows, not one — the multiplier is its count of matching tags times its share rows for that single user, and that second factor is 1 unless the table admits duplicate (resource_id, shared_with_user_id) pairs. LIMIT 50 then limits rows rather than resources, and COUNT(*) counts pairs — the header is the product, not the population.
- Reject DISTINCT as the fix. It deduplicates after the product has been built, so the planner must materialise and sort the fanned-out set before the LIMIT can apply, and it leaves any SUM or AVG in the same select list wrong.
- Rewrite both filters as semi-joins, keeping resource as the only row source: AND EXISTS (SELECT 1 FROM resource_tag rt WHERE rt.resource_id = r.resource_id AND rt.tag_id = ANY($2)) and the same shape against resource_share. A semi-join stops at the first match per resource and preserves the driving index order, so ORDER BY updated_at DESC, resource_id DESC LIMIT 50 still stops after 50 rows.
- Count with the same predicates and no join at all: SELECT count(*) FROM resource r WHERE r.tenant_id = $1 AND r.status = 'active' AND EXISTS (...) AND EXISTS (...). Nothing multiplies a resource, so the number is the population.
Follow-up
- The filter changes from 'any of these tags' to 'all of these tags'. Rewrite it and state what it costs relative to the ANY form.
- A resource can be shared with the same user twice under different permissions. Does your count change, and should it?
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?
What design patterns would you introduce to decouple these highly dependent classes?
Medium · Code Refactoring & Review
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?
Describe your ideal software development lifecycle (SDLC) process from requirements gathering to post-release
Medium · Software Lifecycle & System Design
Describe your ideal software development lifecycle (SDLC) process from requirements gathering to post-release monitoring.
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 the trade-off between shipping a feature quickly and ensuring perfect code quality?
Medium · Software Lifecycle & System Design
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 how you would design a highly available, secure webhook delivery system for payment notificati
Medium · Software Lifecycle & System Design
Walk me through how you would design a highly available, secure webhook delivery system for payment notifications.
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 approach versioning APIs when making breaking changes for enterprise clients?
Medium · Software Lifecycle & System Design
Approach
- Say who the caller is and what they do when the call fails halfway.
- Define the identity of a request so a retry cannot double-apply it.
- Separate accepted, pending, failed and confirmed; they are different facts.
- Design the error taxonomy before the success shape; callers branch on it.
Follow-up
- What happens if the caller retries after a timeout?
- How does a client discover it is on an old version of this contract?
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 Paynearme candidates report.
Day 1 — Map the Paynearme loop
- Write out the reported sequence: Recruiter Screen, Hiring Manager Call, Technical Conversations.
- 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 3 reported rounds, with the weakest marked.
Day 2 — Work Code Refactoring
- Spend the session on Code Refactoring, which Paynearme candidates report being tested on.
- Write one worked example in Code Refactoring and time yourself on it.
Deliverable: One timed worked example in Code Refactoring.
Day 3 — Work Code Review
- Spend the session on Code Review, which Paynearme candidates report being tested on.
- Write one worked example in Code Review and time yourself on it.
Deliverable: One timed worked example in Code Review.
Day 4 — Work Reviewing and Explaining Code
- Spend the session on Reviewing and Explaining Code, which Paynearme candidates report being tested on.
- Write one worked example in Reviewing and Explaining Code and time yourself on it.
Deliverable: One timed worked example in Reviewing and Explaining Code.
Day 5 — Answer out loud: Code Refactoring & Review
- Answer aloud, timed: How would you refactor this specific block of legacy code to make it more testable and maintainable?
- Answer aloud, timed: What design patterns would you introduce to decouple these highly dependent classes?
Deliverable: Spoken answers to 2 reported Code Refactoring & Review question(s), under time.
Day 6 — Answer out loud: Software Lifecycle & System Design
- Answer aloud, timed: Describe your ideal software development lifecycle (SDLC) process from requirements gathering to post-release monitoring.
- Answer aloud, timed: How do you balance the trade-off between shipping a feature quickly and ensuring perfect code quality?
Deliverable: Spoken answers to 2 reported Software Lifecycle & System Design question(s), under time.
Day 7 — Answer out loud: Team Dynamics & Behavioral
- Answer aloud, timed: Tell me about a time you had a strong disagreement with another engineer regarding a technical decision. How did you resolve it?
- Answer aloud, timed: Describe a situation where you had to work with a team member who was underperforming or unresponsive. How did you handle the situation?
Deliverable: Spoken answers to 2 reported Team Dynamics & Behavioral question(s), under time.
Behavioural preparation
Behavioural rounds judge the decision you made and what it cost.
When reviewing a teammate's code, what are the top three things you look for beyond basic correctness?
Medium · Code Refactoring & Review
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?
Tell me about a time you had a strong disagreement with another engineer regarding a technical decision. How d
Medium · Team Dynamics & Behavioral
Tell me about a time you had a strong disagreement with another engineer regarding a technical decision. How did you resolve it?
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 a situation where you had to work with a team member who was underperforming or unresponsive. How did
Medium · Team Dynamics & Behavioral
Describe a situation where you had to work with a team member who was underperforming or unresponsive. How did you handle the situation?
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?
Tell me about a time when a project's requirements changed mid-development. How did you adapt your approach?
Medium · Team Dynamics & Behavioral
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?
Why do you want to work in the fintech space, and what attracts you to Paynearme specifically?
Medium · Team Dynamics & Behavioral
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?