O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
COUCHBASE  SYNC  GATEWAY
James  Nocentini,  
Developer  Advocate,  
Couchbase
©2014	
  Couchbase	
  Inc.
Schedule
2
Sync Gateway in-depth 1-1:30pm
Hands-on, Part 2: Replications 1:30-2pm
Data orchestr...
Demo	
  Sync	
  Gateway
Demo	
  Couchbase	
  Server
vs.
Sync Cache
Sync
©2014	
  Couchbase	
  Inc.
Sync
Push	
  	
  →	
  
Pull	
  	
  	
  	
  ←
7
©2014	
  Couchbase	
  Inc.
Sync
Push	
  	
  →	
  Couchbase	
  Sync	
  Gateway	
  
Pull	
  	
  	
  	
  ←	
  Couchbase	
  Sy...
©2014	
  Couchbase	
  Inc.
Sync
9
public class HomeActivity extends Activity{



private static final String SYNC_URL = "h...
Replication	
  Algorithm
©2014	
  Couchbase	
  Inc.
Sync
11
public class HomeActivity extends Activity{



private static final String SYNC_URL = "...
©2014	
  Couchbase	
  Inc.
Replications
12
Step	
  8
©2015	
  Couchbase	
  Inc. ‹#›
Step	
  8:	
  Replication	
  without	
  authentication
▪ push/pull	
  replications	
  
▪ in...
©2014	
  Couchbase	
  Inc.
Sync
15
public class HomeActivity extends Activity{



private static final String SYNC_URL = "...
Step	
  9
©2015	
  Couchbase	
  Inc. ‹#›
Sync	
  Gateway	
  Basic	
  Authentication
▪ create	
  a	
  user:	
  POST	
  request	
  @	
...
©2014	
  Couchbase	
  Inc.
Sync
18
public class HomeActivity extends Activity{



private static final String SYNC_URL = "...
©2014	
  Couchbase	
  Inc.
Sync
19
public class HomeActivity extends Activity{



private static final String SYNC_URL = "...
©2014	
  Couchbase	
  Inc.
Sync
20
public class HomeActivity extends Activity{



private static final String SYNC_URL = "...
Midpoint	
  code:	
  
git	
  fetch	
  
git	
  checkout	
  workshop/midpoint	
  
Próximos SlideShares
Carregando em…5
×

Mobile workshop: Sync Gateway In-Depth: Couchbase Connect 2015

1.502 visualizações

Publicada em

This daylong workshop will feature a combination of lecture and hands-on lab training on Couchbase Mobile, the embeddable JSON database with built-in sync for Android, iOS, Xamarin and Unity. During this workshop, we will take Android and iOS developers through everything you need to know to get started working with Couchbase Mobile.

Publicada em: Tecnologia
  • Seja o primeiro a comentar

Mobile workshop: Sync Gateway In-Depth: Couchbase Connect 2015

  1. 1. COUCHBASE  SYNC  GATEWAY James  Nocentini,   Developer  Advocate,   Couchbase
  2. 2. ©2014  Couchbase  Inc. Schedule 2 Sync Gateway in-depth 1-1:30pm Hands-on, Part 2: Replications 1:30-2pm Data orchestration with Sync Gateway 2-2:30pm Break 2:30-3pm Hands-on, Part 3: Data orchestration 3-4pm
  3. 3. Demo  Sync  Gateway
  4. 4. Demo  Couchbase  Server
  5. 5. vs. Sync Cache
  6. 6. Sync
  7. 7. ©2014  Couchbase  Inc. Sync Push    →   Pull        ← 7
  8. 8. ©2014  Couchbase  Inc. Sync Push    →  Couchbase  Sync  Gateway   Pull        ←  Couchbase  Sync  Gateway 8
  9. 9. ©2014  Couchbase  Inc. Sync 9 public class HomeActivity extends Activity{
 
 private static final String SYNC_URL = "http://localhost:4984/todos/";
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 
 
 
 Replication pull = database.createPullReplication(SYNC_URL);
 
 
 pull.start();
 }
 }
  10. 10. Replication  Algorithm
  11. 11. ©2014  Couchbase  Inc. Sync 11 public class HomeActivity extends Activity{
 
 private static final String SYNC_URL = "http://localhost:4984/todos/";
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 
 Authenticator authenticator = AuthenticatorFactory.createFacebookAuthenticator(token);
 
 Replication pull = database.createPullReplication(SYNC_URL);
 pull.setAuthenticator(authenticator);
 
 pull.start();
 }
 }
  12. 12. ©2014  Couchbase  Inc. Replications 12
  13. 13. Step  8
  14. 14. ©2015  Couchbase  Inc. ‹#› Step  8:  Replication  without  authentication ▪ push/pull  replications   ▪ in  continuous  mode
  15. 15. ©2014  Couchbase  Inc. Sync 15 public class HomeActivity extends Activity{
 
 private static final String SYNC_URL = "http://10.10.106.24:4984/todos/";
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 
 
 Replication pull = database.createPullReplication(SYNC_URL);
 pull.setContinuous(true); 
 pull.start();
 }
 }
  16. 16. Step  9
  17. 17. ©2015  Couchbase  Inc. ‹#› Sync  Gateway  Basic  Authentication ▪ create  a  user:  POST  request  @  http://10.10.106.24:8080/signup   ▪ use  those  credentials  to  replicate  as  an  existing  user
  18. 18. ©2014  Couchbase  Inc. Sync 18 public class HomeActivity extends Activity{
 
 private static final String SYNC_URL = "http://10.10.106.24:4984/todos/";
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState); 
 
 Replication pull = database.createPullReplication(SYNC_URL);
 pull.setContinuous(true); 
 pull.start();
 }
 }
  19. 19. ©2014  Couchbase  Inc. Sync 19 public class HomeActivity extends Activity{
 
 private static final String SYNC_URL = "http://10.10.106.24:4984/todos/";
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState); Authenticator authenticator = AuthenticatorFactory.createBasicAuthenticator(name, password);
 
 Replication pull = database.createPullReplication(SYNC_URL);
 pull.setContinuous(true); 
 pull.start();
 }
 }
  20. 20. ©2014  Couchbase  Inc. Sync 20 public class HomeActivity extends Activity{
 
 private static final String SYNC_URL = "http://10.10.106.24:4984/todos/";
 
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState); Authenticator authenticator = AuthenticatorFactory.createBasicAuthenticator(name, password);
 
 Replication pull = database.createPullReplication(SYNC_URL);
 pull.setContinuous(true); pull.setAuthenticator(authenticator); 
 pull.start();
 }
 }
  21. 21. Midpoint  code:   git  fetch   git  checkout  workshop/midpoint  

×