1. I will choose to implement it in Python. Because of this time, I learned to write a simple website, and python has a good built-in tool library for us to use, using sockets, _Thread, urllib, json. A socket sends and accepts requests. Urllib implements the processing of third-party URLs and the acquisition of data within third-party urls. JSON is used to format data
2. 200 means success, 400 means no resources, 500 means service side error, URL returns error, indicating page has bug. Success indicates successful server processing.
3. Use sockets to create connections and listen on ports, _thread start a new thread to process each request, and then get a response based on the URL from the request to execute the appropriate method. For example, requests in urllib are used to get exchange rates. Urlopen gets the real-time exchange rate. Add, delete, modify, find currency, may involve the database, use MySQLdb operation database for add, delete, change check.
4. Send and accept requests, database, front-end page display.