모범 사례 및 튜토리얼

Capella 무료 티어를 처음 사용하시나요? 알아야 할 10가지 사항

7 분 읽기

The wait for a Capella perpetual free tier is over! Now the Couchbase DBaaS is available to all: students, hobbyists, startups, and enterprises alike. For those brand new to the Couchbase ecosystem, here are 10 resources you should check out that will help you get the most out of Capella.

1. IDE plugins for VSCode and JetBrains

Capella has a web UI for running queries, setting up buckets, managing credentials, and more. But for day-to-day coding work, you may benefit from an IDE plugin.

These plugins provide syntax highlighting, CRUD operations, visualizations, data migration, Couchbase Lite integration, and more.

These plugins are open source, and you can contribute to them on GitHub:

2. Sample projects

There are a variety of sample projects, in a variety of languages that range from “Hello, World” to complete applications.

전선관

전선관 (from the RealWorld project) is a spec of a basic Medium (social blog platform) clone, with implementation in a variety of frontend and backend platforms and languages. Here are some that use Couchbase:

What is this thing?

What is this thing? Is a demo project of an ecommerce application that uses the hybrid search capabilities of Couchbase: SQL, key/value, vector, geospatial. See the overview video:

RAG demos

RAG (retrieval-augmented generation) is a technique that uses a large language model (LLM) to generate a response to a user query. The LLM is augmented with information from a database (usually retrieved via vector search).

Try CB

Try CB” is a series of sample projects that demonstrate how to use Couchbase with a variety of SDKs (e.g., try-cb-ruby, try-cb-dotnet, etc.)

Hello World

If you just want to get started with a bare minimum console app, the Couchbase documentation for each SDK has a “Start Using” page that can help you through installation, connect, and execution: 자바, Go, PHP, and more. Click on the SDK of your choice and then “Getting Started”.

3. Framework integrations

Couchbase has a growing ecosystem of framework integrations, both official and community-contributed. Here are some of the most notable:

4. Playground

You can get started coding with Couchbase in a browser without having to install anything. Capella has a built-in playground that allows you to use SDKs and/or SQL to try out code samples through interactive tutorials.

5. Capella iQ

Seems like AI is everywhere. Capella iQ is a built-in AI chat that can help you create sample data, construct queries, indexes, generate code for using SDKs, and more.

6. Community Discord and forums

Got questions about Couchbase, technical or otherwise? You can interact with the Couchbase community on 디스코드.

Join Couchbase Discord server

You can also ask questions, browse previous posts, and get help on the Couchbase forums. (Before posting your question, you may want to check out #10 in this blog post).

7. Couchbase Shell

Couchbase Shell is a command-line interface that allows you to interact with Capella and/or Couchbase Server. It provides a way to execute commands and queries against Couchbase Server, as well as manage data, perform administrative tasks, and even interact with LLMs for RAG use cases.

It’s built on NuShell, an open source shell that enables pipelines, treats everything as data, and has a plugin ecosystem.

8. Documentation

Documentation is the treasure map that everyone ignores until they’re hopelessly lost. The Couchbase documentation is a great resource for learning about Couchbase and its features.

Based on my interactions with developers over the years, here are a few pages to highlight frequently asked questions (once you get past the basics):

  • Scan Consistency: If your query isn’t returning your latest documents, you probably need to review scan consistency.
  • ACID Transactions are available in Couchbase SQL, as well as C++, .NET, Java, Go, Node.js, PHP, and Python.
  • CAP 정리: Review the guarantees that Couchbase makes. The short answer is that Couchbase is CP (or AP over multiple data centers).
  • JOINs: Yes, Couchbase supports SQL++; yes it supports JOINs.
  • 색인 is important to understand.
  • Time series: Couchbase is not a time series database, but it has time series functionality.
  • CTE (Common Table Expressions): Couchbase supports CTEs (WITH …​) 그리고 recursive CTEs (WITH RECURSIVE …​)
  • Subdocument: SDKs (like .NET) support partial reads/writes, to avoid sending large documents over the network for small changes.

Want to know more? The 카우치베이스 문서 has an experimental AI tool that allows you to have a conversation with the documentation. Just click the Couchbase logo at the bottom right on the docs site and ask a natural language to help you write SQL++ queries, script an app, get generals answers, and more.

Animation of asking questions to AI-enabled Couchbase documentation

And finally, the docs are open source! You can submit a pull request to fix a typo or contribute a new page.

9. Test containers

Automated testing is important, and when you’re testing your application, you’ll want to test it against a real database, not a mock. The popular Test Containers project supports Couchbase for Java, Go, .NET, and Node.js.

With Test Containers, you can create a “disposable” Couchbase container for use with integration tests in code:

Another project that can be useful for testing is CouchbaseFakeIt, a Docker image that can initialize Couchbase with indexes and fake data.

10. Advanced SDK tooling

When you’re ready to tackle more advanced functionality and/or troubleshoot networking issues, here are some more advanced integrations for Couchbase:

  • SDK doctor – A tool to diagnose application-server-side connectivity issues with your Couchbase or Capella Cluster. If you are having connection issues, definitely try this tool first.
  • Field-level encryption – Fields within a JSON document can be securely encrypted by the SDK to support FIPS 140-2 compliance.
  • Response time observability – Tracing and Metrics provide fine-grained insight into how a distributed application is performing, and helps to diagnose when it is not.

요약

Now that you’re armed with all of these tools, it’s time to build something amazing with Couchbase Capella. Sign up today for the forever free tier. Explore the endless possibilities Capella has to offer. We can’t wait to see what you create—be sure to share your projects and join the growing Couchbase community!

이 기사 공유하기

작가

매튜 D. 그로브스는 코딩을 정말 좋아하는 사람입니다. C#, jQuery, PHP 등 어떤 언어든 상관없이, 그는 무엇이든 풀 리퀘스트를 제출합니다. 그는 90년대에 부모님이 운영하던 피자 가게를 위해 QuickBASIC으로 POS(판매 시점 관리) 앱을 개발한 이래로 줄곧 전문 프로그래머로 활동해 왔습니다. 현재는 Couchbase에서 선임 제품 마케팅 매니저로 근무하고 있습니다. 여가 시간에는 가족과 함께 시간을 보내거나, 레즈(Reds) 경기를 관람하며, 개발자 커뮤니티 활동에 참여합니다. 그는 『AOP in .NET』과 『Pro Microservices in .NET』의 저자이자 Pluralsight 저자이며, Microsoft MVP이기도 합니다.

댓글 남기기

카우치베이스 카펠라를 시작할 준비가 되셨나요?

개발 시작하기

NoSQL을 탐색하고, 리소스를 찾아보고, 튜토리얼을 시작하려면 개발자 포털을 확인하세요.

카펠라 프리 사용하기

단 몇 번의 클릭으로 카우치베이스(Couchbase)를 직접 체험해 보세요. Capella DBaaS는 시작하기 가장 쉽고 빠른 방법입니다.

연락해

Couchbase 제품군에 대해 더 알고 싶으신가요? 저희가 도와드리겠습니다.