코우치베이스 모바일

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 ~에서 카우치베이스 시리즈의 커피, 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.

이 기사 공유하기

작가

윌리엄은 카우치베이스의 모바일 엔지니어링/개발자 경험 팀에서 개발자 옹호자로 활동했습니다. 커피와 코딩에 대한 그의 사랑은 오프라인 대면 경험의 가치를 높이 평가하면서 그를 모바일의 세계로 이끌었습니다. 이전에 윌리엄은 리서치 인 모션(Research In Motion)에서 임베디드 GPS 소프트웨어 엔지니어로 근무했으며, 트위터, 블랙베리, 마이크로소프트의 개발자 relations 팀에서 일했습니다. 윌리엄은 맥길 대학교에서 전기소프트웨어공학을 졸업했습니다.

댓글 남기기

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

개발 시작하기

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

카펠라 프리 사용하기

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

연락해

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