코우치베이스 모바일

Coffee on Couchbase: Lician Club with Couchbase Mobile

2015 is rounding to a close and that means the holiday parties are in full bloom.  With travels and new cities, sometimes discovering that local event or party is not exactly easy.  That is what the Lician Club App allows you to do.  Featuring the trendy spots and VIP guest lists, the application would showcase local events that you may book.  Sitting down with Sebastian Benzian Olsson in the Coffee on Couchbase series, we explore how Couchbase Mobile technology allows for the asynchronous event booking feature to happen through the use of 카우치베이스 싱크 게이트웨이.


When members are invited to a specific club through the mobile app, the Couchbase Admin portal will show the specific detailed profile properties.  The indexing is done through the Couchbase concept of ‘Views’ by creating a Map function while through the Sync Function, it allows for the ability to orchestrate data accordingly to the logic described.

To create a view, we must add the View definition for indexing the documents much like the below:

The MAPBLOCK macro is used to set the map function on the view and is where the method provides the reference to the document we wish to index.  The emitter will emit the particular data to the index.  In the example snippet above, the date of the event is the interest and so we set the index range to be the event date and nil.  You can look at the developer documents on Query and Sorting to understand more on Indexing with MapReduce for JSON documents.

코우치베이스 모바일 value for Lician Club is the ability to have a quick time to product resolution that saves engineering resources overall.  The various Channels in the application allow for particular access privileges to the different document databases.  The data naturally populates through a few lines of code in the Sync Function; which provides data migration or data extensions to happen easily without ever changing any infrastructure logics.  See in the video below how this is done:

In our next episode in the Coffee on Couchbase series, we will explore more in depth and see how the Channel feature in the Sync Gateway component allows for data partitioning to happen for your mobile apps.

이 기사 공유하기

작가

William was a Developer Advocate on the Mobile Engineering/Developer Experience team at Couchbase. His love for coffee and code has transcended him into the world of mobile while appreciating the offline in-person experiences. Prior, William worked on the Developer Relations team over at Twitter, BlackBerry, and Microsoft while also having been a Software Embedded GPS engineer at Research In Motion. William graduated from McGill University in Electrical Software Engineering

댓글 남기기

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

개발 시작하기

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

카펠라 프리 사용하기

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

연락해

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