Home / Companies / Neon / Blog / January 2024

January 2024 Summaries

17 posts from Neon

Filter
Month: Year:
Post Summaries Back to Blog
Postgres users occasionally encounter "remaining connection slots are reserved" errors due to exceeding the maximum number of simultaneous database connections defined by the max_connections setting. This error occurs when a high number of simultaneous connection requests from the same Postgres user surpasses the limit for their database. Neon, a managed Postgres service, sets max_connections based on the size of your compute instance and its memory. To avoid these errors, users can find and remove long-running or idle connections, upgrade to larger computes with higher max_connections settings, or enable connection pooling using PgBouncer for up to 10,000 simultaneous connections.
Jan 31, 2024 1,045 words in the original blog post.
Neon Support has identified a common issue where users encounter Postgres connection limit errors, specifically the "remaining connection slots are reserved for non-replication superuser connections" error, which occurs when the maximum number of simultaneous database connections is reached. This limit is defined by the Postgres max_connections setting, which allocates certain slots for superuser connections. Neon, a managed Postgres service, sets the max_connections based on the compute instance's size and available memory, using a specific formula to determine the limit. Users can avoid these errors by managing long-running or idle connections, upgrading to larger compute sizes under the Neon Pro Plan, or enabling connection pooling with PgBouncer, which allows up to 10,000 simultaneous connections. Connection pooling optimizes performance by reducing the number of connections that need to be established and terminated, thus preventing rejected connections. Neon provides an easy way to enable this feature by adding a -pooler suffix to the compute endpoint ID in the connection string, which can be done automatically via the Neon Dashboard.
Jan 31, 2024 1,162 words in the original blog post.
The Free and Open source Software Developers’ European Meeting (FOSDEM) is a large event in Europe for open source developers to gather, present their current and future projects, and meet old friends and new acquaintances. The event is free and takes place at the Université Libre de Bruxelles. It features around 800 talks and presentations over the weekend, with around 8000 fellow developers attending. All talks are streamed live and recorded for those who cannot attend in person or want to review later. FOSDEM also hosts various auxiliary events, including the FOSDEM PGDay and PostgreSQL Devroom, which offer specialized content on PostgreSQL and related topics. The event is a great opportunity for developers to engage with others, discuss new ideas and features, and learn from presentations and talks.
Jan 24, 2024 869 words in the original blog post.
Neon's serverless Postgres solution offers compatibility with both serverless and traditional long-running applications. Its auto-suspend feature can reduce database costs during off-peak times by suspending databases when no activity is detected within a specified time window. To handle connection loss, client-side pooling can be used to manage the number of open connections and improve performance. This solution benefits both serverless and long-running applications, making them more resilient to connection errors and reducing costs for non-production environments.
Jan 24, 2024 1,245 words in the original blog post.
FOSDEM, the largest open-source event in Europe, will take place at the Université Libre de Bruxelles, featuring around 800 talks and presentations, along with auxiliary events like the FOSDEM PGDay dedicated to PostgreSQL. The event provides a platform for developers to present projects, engage in discussions, and explore a wide range of topics, including databases, operating systems, AI, and machine learning. The PostgreSQL Project will have both a Devroom and a stand, offering opportunities for in-depth discussions and networking. Attendees can choose from various parallel talks, and all sessions are streamed live and recorded, allowing for remote participation and later viewing. The event is not only a hub for technical knowledge but also a chance for developers to connect over shared interests and enjoy the culinary delights of Brussels.
Jan 24, 2024 975 words in the original blog post.
Neon, a cloud-native serverless Postgres solution, offers a "scale to zero" feature that benefits both serverless and traditional long-running applications by suspending database instances during inactivity, thereby reducing costs. This capability is particularly advantageous for MVC-type frameworks like Ruby on Rails and Django, enabling applications to manage connection lifecycle more efficiently and handle reconnection seamlessly when new queries are initiated. The article illustrates configuring Postgres drivers, employing client-side pooling to improve performance, and integrating this functionality into a Node.js application using HTMX, Fastify, and Drizzle ORM, demonstrating significant performance improvements. The discussion emphasizes Neon's compatibility with existing Postgres drivers and highlights the cost-saving potential for non-production environments, encouraging developers to explore Neon's features and share their experiences.
Jan 24, 2024 1,615 words in the original blog post.
Branch, an insurance company, chose Neon Serverless Postgres as their database solution due to its true serverless nature and compatibility with existing systems. They transitioned from Amazon DynamoDB and other providers that couldn't fulfill their needs for complex queries and diverse data access patterns. Neon's scalability, ease of use, and flexibility made it a perfect match for Branch's serverless architecture, leading to significant improvements in operational efficiency, scalability, and cost-effectiveness.
Jan 18, 2024 566 words in the original blog post.
Branch, an innovative home and auto insurance company, transitioned to Neon Serverless Postgres to better align with their serverless architecture, allowing them to focus on developing their product rather than managing infrastructure. Initially using Amazon DynamoDB, Branch faced limitations in handling complex queries and diverse data access patterns, which prompted them to explore other options such as Aurora Serverless. However, these alternatives had scalability and cost inefficiencies. Neon was chosen for its true serverless capabilities, scalability, and ease of integration with Branch's tech stack, including AWS Lambda and Vercel. The switch to Neon resulted in improved operational efficiency, cost-effectiveness, and a streamlined developer workflow through features like database branching. Neon’s pay-per-use model and ability to scale down to zero offered financial and technological advantages, making it a strategic fit for Branch's growing data needs.
Jan 18, 2024 663 words in the original blog post.
Neon has introduced Dynamic Extension Loading to support private and custom PostgreSQL extensions, addressing performance, security, and customization challenges in its serverless environment. This feature enables on-demand loading of extensions without restarting compute instances, reducing maintenance overhead and bringing performance benefits. With this development, Neon aims to make PostgreSQL more adaptable and efficient in a cloud-based setting.
Jan 17, 2024 821 words in the original blog post.
This article discusses how developers can build AI-powered apps using Postgres and DronaHQ, focusing on internal tools that often run on outdated systems or spreadsheets. Low-code technology helps minimize complexities in traditional coding, allowing for faster development of digital tools to store and manage data, build frontends, and leverage new-age APIs like OpenAI. The integration of AI into low-code platforms enables developers to quickly connect with AI models and build AI-powered applications smoothly. By using Neon, DronaHQ, and OpenAI APIs, developers can create a lead management app that allows for the sending of AI-generated personalized emails to every lead in under an hour.
Jan 17, 2024 1,800 words in the original blog post.
Neon has introduced Dynamic Extension Loading for serverless PostgreSQL, allowing for private and custom extensions to be added without restarting compute instances, which run as ephemeral Kubernetes pods or VMs. This approach addresses challenges such as performance issues, security risks, and maintenance overhead in serverless environments by building extensions separately, storing them in an S3 bucket, and enabling on-demand loading. This new mechanism enhances customization by configuring extensions per user and reduces the compute image size, resulting in faster start times. Currently in beta, this feature marks a significant advancement for PostgreSQL's adaptability in serverless contexts, with plans for broader availability in the future.
Jan 17, 2024 934 words in the original blog post.
Building AI-powered applications using Postgres and DronaHQ involves leveraging low-code platforms to streamline the development process, enabling developers to focus on business logic rather than intricate coding details. This approach highlights the integration of AI and low-code solutions to enhance internal operations and improve workflow efficiency, particularly in lead management. Developers can use tools like Neon for data management and DronaHQ for frontend development, utilizing drag-and-drop elements to design user interfaces and seamlessly integrate AI features such as personalized email generation. By connecting platforms like OpenAI and Gmail, developers can automate tasks and create sophisticated applications without the complexities of traditional coding, ultimately improving user experiences and decision-making processes.
Jan 17, 2024 1,864 words in the original blog post.
Amazon Aurora Serverless V1 is being phased out by the end of this year, forcing users to migrate to V2 which lacks scale-to-zero capabilities. Neon, a serverless Postgres with performant scale-to-zero, offers an alternative solution. Migrating from V1 to V2 can lead to significant cost increases due to idle instances no longer being free. In contrast, moving from V1 to Neon results in comparable costs and faster cold starts. The migration process involves using AWS Database Migration Service (DMS) to copy data from Aurora source database to the target Neon PostgreSQL database while maintaining integrity of the database structure.
Jan 12, 2024 966 words in the original blog post.
In PostgreSQL, logical replication is the process of copying and maintaining database objects in multiple locations, which can happen synchronously or asynchronously at various levels. The Write-Ahead Log (WAL) plays a crucial role in ensuring data consistency and recovery from crashes. Logical replication allows for flexible replication of specific tables, rows, or columns, making it suitable for syncing transactional data to data lakes or warehouses. Airbyte provides connectors for PostgreSQL-to-external-data-store logical replication, enabling the creation of an EL pipeline with community-built and maintained connectors. Neon's support for logical replication and pairing with Airbyte Cloud offers a scalable solution for serverless PostgreSQL deployments in the cloud. By configuring WAL settings, such as wal_compression, max_wal_size, and min_wal_size, users can optimize disk space usage and improve replication performance.
Jan 11, 2024 1,893 words in the original blog post.
OpenAI's GPT Store allows developers to create custom ChatGPT experiences tailored for specific tasks or topics. The guide provided outlines the steps to create a custom GPT using Python and Postgres. Generative Pre-trained Transformers (GPTs) are machine learning models that provide human-like text interfaces, enabling additional capabilities like web browsing and DALL·E image generation. OpenAI has introduced the GPT Store, where users can explore various GPTs and creators can potentially earn money based on their usage by the community. Developers with a Plus or Enterprise subscription can create GPTs using the GPT Builder in ChatGPT, adding instructions, uploading files for the knowledge base, and selecting capabilities such as web searching, image creation, or data analysis. Custom knowledge in GPTs is limited to 20 documents, and text document formats are currently supported.
Jan 11, 2024 856 words in the original blog post.
OpenAI has launched the GPT Store, enabling developers to create and publish custom ChatGPT experiences tailored to specific tasks or domains, such as the Neon PostgreSQL Expert GPT. These custom GPTs, built using Python and Postgres, can include advanced features like web browsing and DALL·E image generation. Developers can enhance these GPTs with Retrieval Augmented Generation (RAG) to access external knowledge bases, though there are limitations, such as a cap on document uploads and concerns about data security. The GPT Store allows creators to monetize their GPTs based on user engagement, but those with extensive knowledge bases or sensitive data might consider building their own RAG applications using open-source tools. Despite these limitations, the GPT Store offers a promising avenue for sharing and monetizing AI innovations with the broader community.
Jan 11, 2024 1,147 words in the original blog post.
Logical replication in PostgreSQL is a method for synchronizing data across databases or between a PostgreSQL database and external data stores, leveraging the Write-Ahead Log (WAL) to track changes. This process can be configured to work at the transaction level, allowing for selective data replication. Unlike physical replication, which duplicates binary data at the byte level, logical replication offers more flexibility by enabling the selection of specific tables or rows for replication. The use of replication slots ensures data consistency across subscribers, with WAL records being retained until they are successfully published. Tools like Airbyte can facilitate the replication of PostgreSQL data to analytical environments such as BigQuery, Snowflake, or Redshift, through the use of source and destination connectors. Cloud-native platforms like Neon further enhance PostgreSQL deployments by offering managed scalability and features like database branching. Proper configuration of WAL settings, such as `wal_compression` and `max_wal_size`, can optimize disk space usage and improve performance, making PostgreSQL a versatile choice for various data replication needs.
Jan 11, 2024 2,027 words in the original blog post.