On Github siddontang / introduction-to-web-service
tangliu@kingsoft.com
What's web service?
A web service is a software function provided at a network address over the web or the cloud (from wiki)
No HTTP, No web. All are based on HTTP!
Two Method:
FS Service: store file
Client: upload or download file from FS Service directly
I think it's like a FTP.
But when files are too many?
File: Meta + Data Data are stored in difference Data Service Meta Service can find where
How to find?
Generality: Hash
Many Clients download file data through meta service?
Client request Meta Service to download Meta Service return Data Service location Client download from Data Service directlyData Storage may corrupted!!!
Backup, when master failed, use backup service!
Can download more quickly?
Meta Service may also have bottleneck!
Use proxy for safer download!!!
Heartbeat
Keepalived