from/prod
← All companies

THE COMPANY INDEX TRACKED BLOG

Nextdoor

Ideas, decisions, and lessons from the team.

engblog.nextdoor.com (opens on the source site)LinkedIn X
10Posts tracked
5 days agoLatest publication
0.1Posts / month over the last 12 months

Latest writing

10 of 10 posts

Tracing Cache Inconsistencies to Their Root Cause (opens on the source site)

How Nextdoor added verification keys to its Valkey cache so every inconsistency with Postgres comes with a root cause, and the bugs they uncoveredKeeping a cache consistent is only half the problem. In our previous series, versioned writes kept our Valkey cache from going backwards, and a reconciler deleted stale entries left behind by missed or racing writes. What that series didn’t answer is the question that comes right after every fix: what broke in the first place? A self-healing cache repairs the symptom and erases the evidence. This post is about how we taught our cache to keep…

Read at the source

Scaling Nextdoor’s Datastores: Part 5 (opens on the source site)

In this final installment of the Scaling Nextdoor’s Datastores blog series, we detail how the Core-Services team at Nextdoor solved cache consistency challenges as part of a holistic approach to improve our database and cache scalability and usability.In Part 4: Keeping the cache consistent, we highlighted a class of consistency issues arising from racing cache writes and introduced an approach for forward cache versioning as a mechanism to avoid inconsistencies. The cache is able to decide which write to persist and which to reject because it is aware of the version of data it currently has.…

Read at the source

Scaling Nextdoor’s Datastores: Part 4 (opens on the source site)

In this part of the Scaling Nextdoor’s Datastores blog series, we will see how the Core-Services team at Nextdoor keeps its cache consistent with database updates and avoids stale writes to the cache.In this post, we’ll focus specifically on inconsistencies caused by racing writes and our solution. We’ll discuss other causes and our full solution for consistent caching in the next installment of our blog: Part 5: A time-bounded eventually-consistent cache.Inconsistent CacheCaches can become inconsistent with the database for several reasons, such as:Racing Writes / Concurrent Updates:…

Read at the source

Scaling Nextdoor’s Datastores: Part 3 (opens on the source site)

In this part of the Scaling Nextdoor’s Datastores blog series, we’ll explore how the Core-Services team at Nextdoor serializes database data for caching while ensuring forward and backward compatibility between the cache and application code.In part 1 of this series we discussed how ORMs, object-relational mapping frameworks, help abstract away database specific schemas and queries from application code. Developers simply utilize objects in their application’s language to access database data.Here’s a simple example of using Python’s Django ORM to define a model:from django.db import…

Read at the source

Scaling Nextdoor’s Datastores: Part 2 (opens on the source site)

In the second installment of Nextdoor’s “Scaling Nextdoor’s Datastores” blog series, the Core-Services team discusses challenges faced after implementing database read replicas.Adding read replicas to an existing database is a very common pattern as applications or products evolve to handle increased demand. Typically, the implementation details are hand waved and it’s assumed that this strategy will work. However, that is rarely the case, and we’ll dive into some more of the intricacies around the implementation.Initial AttemptWhen replicas were first introduced in the Nextdoor stack, we…

Read at the source

Scaling Nextdoor’s Datastores: Part 1 (opens on the source site)

At Nextdoor, the Core-Services team is responsible for the primary set of databases and caches that power the Nextdoor platform. This blog series explores our 2024 initiatives to enhance the scalability of this critical infrastructure. When we sat down at the whiteboard we sought to address two related problems:How can we reduce load on our primary database(s) and better utilize database read replicas?How can we improve our cache consistency?In this post we’ll provide a primer on the common industry-wide solutions we’ve previously employed along with discussing their caveats and pitfalls. In…

Read at the source

Let AI Entertain You: Increasing User Engagement with Generative AI and Rejection Sampling (opens on the source site)

Generative AI (Gen AI) has demonstrated proficiency in content generation but does not consistently guarantee user engagement, mainly for two reasons. First, Gen AI generates content without considering user engagement feedback. While the content may be informative and well-written, it does not always translate to increased user engagement such as clicks. Second, Gen AI-produced content often remains generic and may not always provide the specific information that users seek.Nextdoor is the neighborhood network where neighbors, businesses, and public agencies connect with each other. Nextdoor…

Read at the source

From Pre-trained to Fine-tuned: Nextdoor’s Path to Effective Embedding Applications (opens on the source site)

BackgroundThe majority of ML models at Nextdoor are typically driven by a large number of features that are primarily either continuous or discrete in nature. The personalized features usually stem from historical aggregations or real-time summarization of interaction features, typically captured through logged tracking events. However, representing content through deep understanding using information behind it (text/image) is crucial for modeling nuanced user signals and better personalizing complex user behavior across many of our products. In the rapidly evolving field of NLP, utilizing…

Read at the source

Securing Diversity in Cybersecurity (opens on the source site)

Panelists from Left to Right: Ronit Polak (Moderator), Kathy Wang* , Lea Kissner, Rupa Parameswaran, Olivia Rose, Jameeka Green Aaron *Correction: Kathy Wang is the former, not current CISO of DiscordAt Nextdoor we build technology that empowers resilient, safe, and kind neighborhoods all over the world. Securing a product that empowers global communities requires diverse and inclusive teams, reflective of the communities we support.Yet hiring and retaining the diverse talent needed to achieve our purpose remains an industry challenge. The gap is particularly evident in the cybersecurity…

Read at the source

Catching Anomalies Early in Mobile App Releases (opens on the source site)

How Nextdoor catches mobile app release anomalies at 1% adoptionAt Nextdoor, our mobile applications on iOS and Android serve content to tens of millions of weekly active users. At this scale, we run a weekly release process for both iOS and Android, shipping hundreds of changes across multiple teams and dozens of mobile engineers.Our team uses several observability processes and rollout strategies to keep these deployments safe and scalable. We most notably use phased rollouts to minimize the impact of a potentially bad release. Phased rollouts allow us to gradually increase the adoption of…

Read at the source

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.