December 2023 Summaries
24 posts from Neon
Filter
Month:
Year:
Post Summaries
Back to Blog
Logical replication in Postgres, a method for Change Data Capture (CDC), allows for the synchronization of data across multiple data stores, enabling real-time analytics and minimizing latency. This feature uses a publisher-subscriber model, where the Neon database acts as a publisher, streaming changes to one or more target data stores. The Write-Ahead-Log (WAL) serves as the primary data source, capturing comprehensive sequences of data changes that are then decoded for replication purposes. Logical replication offers flexibility in selective table and column replication, and is ideal for situations requiring minimal impact on the source database or cross-version compatibility. However, it has limitations, including not being a subscriber, potentially causing replication lag, and requiring manual intervention for Data Definition Language (DDL) operations.
Dec 21, 2023
1,480 words in the original blog post.
Replicating data from Neon in real time using Materialize allows for better and faster product development by providing an analytical data warehouse that is too slow or too costly, and a stream processor that introduces too much complexity. Logical replication enables capturing INSERT, UPDATE, and DELETE operations as they happen in the Neon database, making this data available to an external system for processing. Materialize can handle arbitrarily complex transformations on changing data using just SQL, and requires no additional infrastructure while guaranteeing transactional consistency. By configuring logical replication in Neon, creating a publication with the tables to replicate, granting permissions to a dedicated user, and creating a source in Materialize, developers can build CDC pipelines that provide fresh and consistent data. With its ability to handle CDC pipelines efficiently, Materialize makes it possible to transform replicated data into actionable results without requiring significant changes to architecture or infrastructure.
Dec 21, 2023
793 words in the original blog post.
Neon has introduced logical replication, enabling real-time data replication, which can be used to create interactive data applications and enhance customer experiences. By using Materialize, users can replicate data from Neon without overhauling their architecture. Materialize efficiently handles Change Data Capture (CDC) from PostgreSQL databases like Neon, offering complex data transformations using SQL while maintaining transactional consistency without additional infrastructure. The blog post provides a step-by-step guide on configuring logical replication in Neon and creating a CDC pipeline to replicate data into Materialize, which processes the data in real time. This setup allows users to perform operations on fresh data without the complexity and cost typically associated with analytical data warehouses or stream processors. The post encourages readers to explore how Materialize can improve their products and offers customer stories for further insights.
Dec 21, 2023
1,044 words in the original blog post.
Neon has announced the beta release of logical replication, a feature in Postgres that facilitates Change Data Capture (CDC) by allowing real-time data streaming to external data stores. CDC is crucial for maintaining data synchronization, minimizing latency, and supporting event-driven architectures, especially in distributed systems. Logical replication in Postgres uses a publisher-subscriber model, leveraging the Write-Ahead-Log (WAL) to capture and stream data changes selectively, offering flexibility over physical replication. This release supports the `wal2json` format, enabling integration with various data platforms like Materialize or Kafka. However, it does not currently support subscriber capabilities or automatic replication of Data Definition Language (DDL) operations, requiring manual intervention for schema changes. Despite its limitations, logical replication is a pivotal feature for modern applications, and Neon encourages users to explore its potential and contribute feedback.
Dec 21, 2023
1,622 words in the original blog post.
Neon, a fully hosted and managed PostgreSQL service, has introduced an IP Allow feature for its Pro Plan customers. This security enhancement allows users to restrict access to their database branches by IP address, adding an extra layer of protection against unauthorized access and data breaches. The IP Allow feature requires passwords with at least 60 bits of entropy and can be managed through the Neon console's Settings screen.
Dec 19, 2023
502 words in the original blog post.
Neon has introduced a new security feature called IP Allow for its Pro Plan customers, enhancing the security of its fully hosted and managed PostgreSQL instances. This feature allows users to restrict access to their database branches by specifying a range of allowed IP addresses, adding an extra layer of protection against unauthorized access and common attack vectors like phishing. The IP Allow feature complements existing security measures, such as requiring passwords with at least 60 bits of entropy, by ensuring that even if attackers obtain valid credentials, they are unable to connect unless they use an IP address on the allowlist. Users can implement this feature through the Neon console, where they can specify the allowed IP addresses, thereby preventing access from any other IPs and ensuring that only trusted sources can connect to their databases.
Dec 19, 2023
598 words in the original blog post.
PolyScale brings automated caching to Neon databases, allowing users to minimize load on their database while providing sub-millisecond responses for cached queries globally. With the integration, users can set up caching for all queries in a few clicks and with a simple change to their database connection string. PolyScale's algorithms determine what to cache and for how long, ensuring 100% automatic invalidation of stale data through its Smart Invalidation system. The system leverages multiple layers of analysis to identify caching opportunities, providing highly scalable and performance-optimized solutions. By combining PolyScale with Neon, users can maximize the capability of their database, reducing latency access to cached queries globally while minimizing load on the database itself. With PolyScale's in-built performance test, users can see exactly how much latency reduction they can get from anywhere in the world when adding PolyScale to their project.
Dec 18, 2023
2,417 words in the original blog post.
PolyScale, in collaboration with Neon, offers an innovative solution for enhancing database performance by integrating automated caching into the serverless Postgres environment. Neon separates storage and compute for features like autoscaling and bottomless storage, while PolyScale functions as a fully autonomous sidecar cache that reduces database load and provides low-latency access without requiring code changes. The integration allows users to modify their connection string to route queries through PolyScale's Point of Presence, where its caching algorithms intelligently manage cache time-to-live and invalidate stale data using a multi-layer approach. PolyScale's caching capabilities are enhanced by machine learning algorithms that optimize caching decisions in real-time, leading to significant reductions in query response times globally. Users can take advantage of the PolyScale performance test to measure latency improvements, demonstrating how PolyScale can provide sub-millisecond responses for cached queries by minimizing geographic latency and database load.
Dec 18, 2023
2,500 words in the original blog post.
This guide outlines the process of setting up Keycloak, an open-source identity and access management solution, with Neon's Postgres database and deploying it on Koyeb. The steps include creating a dedicated Keycloak database in Neon, configuring a Keycloak database user, deploying Keycloak on Koyeb with SSL certificates, creating a Keycloak realm and client, and connecting a Next.js application to Keycloak for user authentication. The repository associated with this blog post provides an example of a Next.js application that integrates with Keycloak using NextAuth.js.
Dec 15, 2023
1,074 words in the original blog post.
The guide offers a comprehensive tutorial on integrating Keycloak, an open-source identity and access management solution, with Neon's Postgres database and deploying it on Koyeb. It highlights Keycloak's capabilities, such as single sign-on, two-factor authentication, and support for identity protocols like OAuth 2.0, while providing step-by-step instructions for setting up a Keycloak database on Neon, creating a database user with specific privileges, and deploying Keycloak on Koyeb using container images. The guide also explains how to create and manage Keycloak realms and clients, exemplified by connecting a Next.js application using NextAuth.js for user authentication. It emphasizes the importance of configuring environment variables correctly and offers suggestions for optimizing Keycloak's performance in production environments, such as crafting an optimized container and exploring Neon's features for data restoration.
Dec 15, 2023
1,219 words in the original blog post.
Neon, a Postgres provider with serverless architecture, has introduced a new feature called Branch Reset to streamline developer workflows. This feature allows developers to seamlessly update their development branches with the latest schema and data from the main branch, ensuring compatibility with recent team changes. The reset process is similar to `git reset –hard parent` in traditional Git workflows. However, it's crucial to be aware of limitations such as local changes being lost during the overwrite operation and temporary interruption of database connections during the reset process. By using Branch Reset, developers can maintain a more efficient and collaborative development process by keeping their efforts synchronized with their team's progress.
Dec 14, 2023
453 words in the original blog post.
Neon has introduced a new feature called branch reset, enhancing its serverless architecture's database branching capabilities. This feature allows developers to streamline workflows by creating instant copy-on-write clones of data that can be modified without affecting the main database. The branch reset functions similarly to a `git reset --hard parent` command, enabling seamless updates to development branches with the latest schema and data from the main branch. While this ensures compatibility with recent changes, it involves a complete overwrite of local changes and temporary disruption of database connections during the reset process. Neon encourages developers to explore this feature to improve collaboration and development efficiency, with further details available in their documentation and community forums.
Dec 14, 2023
692 words in the original blog post.
Mistral AI has released Mixtral 8x7B, an open-source large language model (LLM) that supports 32k tokens and improved code generation. The new model matches or outperforms GPT3.5 on most standard benchmarks. Developers can use the Python and JavaScript client libraries provided by Mistral AI to fine-tune Mixtral and utilize its API for text embedding. The pricing structure of Mixtral, particularly for the mistral-tiny and mistral-small models, presents a more cost-effective alternative to gpt-3.5-* models. Overall, Mixtral 8x7B marks an exciting development in the AI field, offering powerful and efficient tools for a variety of applications.
Dec 11, 2023
964 words in the original blog post.
The article explores a comparative analysis of the Mistral 7B model, an alternative to OpenAI’s GPT models and BAAI models in the context of Retrieval Augmented Generation (RAG) applications. RAG pipelines enhance LLMs by providing them with external 'research' to inform their responses. The article delves into understanding RAG pipelines, open-source AI models, and introduces the Mistral 7B model. It also discusses BGE embedding, a general Embedding Model pre-trained using retromae that can be fine-tuned. A methodology of comparative analysis is presented, and results are discussed in terms of context quality and text generation quality. The article concludes by stating the importance of choosing the right embedding model based on specific application requirements and highlights the potential of newer models like Mistral 7B to close the gap with OpenAI's GPT models.
Dec 11, 2023
1,545 words in the original blog post.
In the evolving domain of AI-powered applications, selecting the appropriate model is crucial, particularly for Retrieval Augmented Generation (RAG) pipelines that enhance Large Language Models (LLMs) by supplying external research to inform their responses. This analysis compares the performance of Mistral 7B, a promising open-source alternative to OpenAI's GPT models, against BAAI models in RAG applications. Open-source models like Mistral 7B offer transparency in training processes and outputs, addressing security concerns associated with proprietary models. The Mistral 7B model, which outperforms models like Llama 2 in reasoning, mathematics, and code generation, is noted for its efficiency and ease of deployment, making it a viable option for those seeking alternatives to GPT models. However, in tests, gpt-3.5-turbo performed better than mistral-7b-instruct-v0.1, indicating potential for further improvements in newer models. Additionally, the analysis of embedding models such as BGE and text-embedding-ada-002 revealed that while they often produce similar context results, they have distinct characteristics that affect semantic search outcomes. The findings underscore the importance of choosing the right model based on specific application needs, with the Mistral 7B model showing promise but also room for growth in bridging performance gaps with established models.
Dec 11, 2023
1,704 words in the original blog post.
Mistral AI’s new model, Mixtral 8x7B, represents a significant advancement in open-source large language models, offering enhanced features such as 32k token support and improved code generation, rivaling or surpassing GPT-3.5 in standard benchmarks. While the model demands more resources than its predecessor, Mistral 7B, increasing costs and hardware requirements, it provides a cost-effective alternative to GPT-3.5 models, particularly through its more affordable mistral-tiny and mistral-small variants. The Mistral AI API, still in beta and requiring an invite, offers compatibility with existing OpenAI client libraries, simplifying migration for developers. Additionally, Mistral AI introduces a new text embedding model, mistral-embed, which, although slightly more expensive than OpenAI's text-embedding-ada-002, integrates seamlessly with the existing client library. The Mixtral 8x7B model and its associated tools offer promising opportunities for developing AI applications and Retrieval Augmented Generation pipelines, despite the need for adjustments in embeddings and potential cost considerations for users transitioning from models like ada v2. Overall, Mixtral 8x7B is poised to have a significant impact on AI development, offering powerful and efficient solutions for a broad spectrum of applications.
Dec 11, 2023
1,128 words in the original blog post.
The company behind Neon, a multi-tenant distributed system, has experienced several incidents over the past two months affecting different aspects of their service. They have communicated these incidents through their status page, which provides updates on what happened, the impact size, and actions taken to prevent similar issues in the future. The company removed the uptime percentage metric from their status page due to its inaccuracy, instead exploring a new metric that better represents the health of their system. Neon's architecture separates storage and compute layers, leading to issues such as noisy neighbors causing high IO on compute nodes or internal API requests, which were addressed by implementing mitigation strategies and improving retry logic. The company is also working to reduce the blast radius for misconfigured components by switching them to region-local deployments. With their focus on cloud independence, performance, and developer experience, Neon aims to ensure reliability and scalability as they approach general availability.
Dec 08, 2023
1,029 words in the original blog post.
Neon, a multi-tenant distributed system, has recently faced several incidents affecting its service uptime, prompting a reevaluation of how uptime is measured and communicated. The company decided to remove the traditional uptime percentage metric from its status page, opting instead for a more nuanced approach to reflect the health of its system. Recent technical challenges included issues related to "noisy neighbors" causing high IO and API request rates, and misconfigurations due to centralized components, all of which Neon has addressed with targeted solutions like implementing Kubernetes DaemonSets and regional deployments. As the company approaches general availability, it remains focused on ensuring platform reliability and scalability while incorporating community feedback, emphasizing its commitment to open-source development and cloud independence.
Dec 08, 2023
1,128 words in the original blog post.
Neon has launched a Discord server for its growing user base, aiming to provide an additional platform for connection and collaboration. The Discord community space offers forum channels, a relaxed atmosphere, video and real-time engagement features, as well as onboarding and moderation tools. By utilizing Discord's various functionalities, Neon aims to foster a sense of community among its users and team members.
Dec 07, 2023
258 words in the original blog post.
Neon has launched a new community on Discord to enhance user interaction and collaboration, driven by user feedback and the platform's user-friendly features. The Discord server is designed to facilitate connection between users and the Neon team, offering a Q&A forum and a space for feedback. Discord was chosen for its familiarity among users and its supportive environment for engagement, providing functionalities like forum channels for searchable Q&As, a relaxed atmosphere for community interaction, and robust audio and video capabilities for hosting live events. Additionally, Discord's onboarding and moderation tools help ensure a smooth user experience. The initiative aims to create a welcoming and collaborative community space.
Dec 07, 2023
354 words in the original blog post.
Introducing the PolyScale Integration with Neon, a new integration that allows you to distribute and cache your data globally, ensuring low-latency read queries no matter where in the world you are. This simplifies the complexity of data distribution and caching without requiring extensive coding and infrastructure changes. PolyScale is a gateway to global data accessibility, leveraging a low-latency edge network to improve application performance and efficiency. The integration with Neon allows for easy setup and management, automatically creating a global cache and providing a unique connection string that replaces your Neon connection string in applications. Once connected, PolyScale caches all queries by default, recognizing patterns in query traffic to optimize data access progressively.
Dec 04, 2023
489 words in the original blog post.
We have successfully passed the SOC 2 Type 2 audit, following closely on the heels of our Type 1 audit in June, demonstrating our commitment to staying at the forefront of security standards and protecting systems against unauthorized access, ensuring data privacy and safeguarding sensitive information. SOC 2 compliance is crucial for building trust with clients and providing a competitive edge by highlighting our dedication to high-security standards, while also ensuring adherence to relevant data privacy regulations and fulfilling legal obligations. By achieving SOC 2 compliance, we assure that our development process, infrastructure, and system architecture have been thoroughly evaluated and tested with industry-recognized security and compliance standards, protecting sensitive customer data from unauthorized access. Our journey toward SOC 2 compliance involved a detailed and months-long process of examining existing security measures, implementing stronger incident management and risk assessment controls, exceeding requirements, and concluding with an audit by a third-party firm confirming our compliance. We will continue to work towards achieving ISO 27001 (security) and ISO 27701 (privacy) certifications in 2024, demonstrating our commitment to top-tier information security and privacy management.
Dec 04, 2023
496 words in the original blog post.
Neon has successfully achieved SOC 2 Type 2 compliance, marking a significant milestone in their commitment to high security standards, following their earlier SOC 2 Type 1 audit. SOC 2, developed by AICPA, ensures data security, availability, processing integrity, confidentiality, and privacy, which are critical for building trust with clients and gaining a competitive edge. Neon enhanced its security measures by aligning internal controls with SOC 2 criteria, including incident management and access controls, and underwent a rigorous audit to confirm compliance. This achievement not only assures clients of the secure handling of their data but also sets a benchmark for robust data management practices. Looking forward, Neon plans to pursue ISO 27001 and ISO 27701 certifications in 2024, further demonstrating their dedication to information security and privacy management.
Dec 04, 2023
600 words in the original blog post.
The new integration between Neon and PolyScale enhances global data accessibility by allowing users to distribute and cache data efficiently without the need for complex coding or infrastructure changes. PolyScale utilizes a low-latency edge network to improve application performance by caching queries globally, eliminating the need for cross-regional replication. The integration requires no code modifications and can be easily set up through the Neon Console, where users can manage their cache and monitor traffic patterns for optimal data access. By automatically caching queries and recognizing traffic patterns, PolyScale ensures faster data retrieval, particularly benefiting global applications. This seamless integration simplifies data distribution challenges, allowing developers to focus on application development.
Dec 04, 2023
585 words in the original blog post.