Search at Tokopedia

22

Transcript of Search at Tokopedia

Page 1: Search at Tokopedia
Page 2: Search at Tokopedia

SEARCHAT TOKOPEDIA

Page 3: Search at Tokopedia

WHY SEARCH IS IMPORTANT?

Page 4: Search at Tokopedia

PREVIOUS SEARCH IN TOKOPEDIA

Page 5: Search at Tokopedia

PREVIOUS SEARCH IN TOKOPEDIA

2000 – 8000 ms / search.

145 KB content to download for each request.

Dependancy with 4 databases.

Page 6: Search at Tokopedia

PUT LOAD BALANCER

Solution #1

Page 7: Search at Tokopedia

Load Balancer

Page 8: Search at Tokopedia

Load Balancer

Page 9: Search at Tokopedia

ISOLATION

Solution #2

Page 10: Search at Tokopedia

REMOVE USELESS INDEXES

Solution #3

Page 11: Search at Tokopedia

REWRITE IN GOMADE AN API

Solution #4

Page 12: Search at Tokopedia

REMOVE DATABASES DEPENDANCY

Solution #5

Page 13: Search at Tokopedia

REMOVE DATABASES DEPENDANCY

Solution #5

Page 14: Search at Tokopedia

Solution #6DO CLIENT SIDE TEMPLATING

Page 15: Search at Tokopedia

Solution #6

Page 16: Search at Tokopedia

BEFORE AFTER

2000 – 8000 ms / search.

145 KB content to download for each request.

8 Millions index.

Dependancy with 4 databases.

6– 50 ms / search. (160 times faster)

7KB content to download for each request.(20 times smaller)

4.7 Millions index. (useless index removed, 1.7 times less)

Dependancy with 1 databases on runtime.

Result #1

Page 17: Search at Tokopedia

2000 – 8000 ms / search.

45 KB content to download for each request.

8 Millions index.

Dependancy with 4 databases.

6– 50 ms / search.

7KB content to download for each request.

4.7 Millions index. (useless index removed)

Dependancy with 1 databases on runtime.

Making Customers Deliriously Happy

Page 18: Search at Tokopedia

2000 – 8000 ms / search.

45 KB content to download for each request.

8 Millions index.

Dependancy with 4 databases.

6– 50 ms / search.

7KB content to download for each request.

4.7 Millions index. (useless index removed)

Dependancy with 1 databases on runtime.

Result #2

Page 19: Search at Tokopedia

CHALLENGES ON SEARCH

Bad search result = No body can find

anything. Index growth

Slow indexing process, More features = slowing index process

Search result is subjected

Page 20: Search at Tokopedia

FEATURES ON SEARCHAutocomplete

Spellcheck

Filtering

Sorting

Page 21: Search at Tokopedia

FUTURE SEARCH AT TOKOPEDIA Suggestion

Page 22: Search at Tokopedia

Q & A