Segmentfault is a Q & A website similar to Quora, stack overflow, zhihu, and others.
> Enhanced search
And Stack Overflow only put a search box in an inconspicuous position in the upper right corner;
Segmentfault puts it next to the title logo and uses search as a top technical problem at the beginning.
The Lucene engine was initially used as a back-end search service for Java. Later, the entire search was transferred to the redis platform. redis was used for intra-site search, which is more efficient and accurate.
Chinese Word Segmentation;
> Architecture
Storage: redis not only meets some memcached services, but also has a data structure that meets the needs well. For example, hash, list, and ordered list can all meet our needs well. In terms of language selection, we had a lot of options at first, but later we chose
Language: select the most familiar PHP
Database: MySQL (MySQL percona is mainly used to optimize the InnoDB engine)
Backend cache: redis
Image Storage: youpai cloud storage (advantage: You can customize the image scaling size ...)
Chinese Word Segmentation: scws
Email Service: aws ses (Amazon simple email service) (if you build your own email server, it may be considered as spam and may encounter other problems, however, if you use the Amazon Service, there will be no such problem .)
Openid: third-party logon is performed on most platforms outside China. More than nine third-party logon methods are supported, which greatly facilitates Chinese users.
> References:
Http://www.infoq.com/cn/articles/interview-segmentfault-sunny-joyqi