Preparations before the interview --- C # knowledge Review ---- 05,
The technical blog has to be written, the work is still being screened, and the study has to continue.
1. Differences between Session and Cookie usage
The answer is that the Session is on the server, and the stored data can be large. For example, we store a Table with thousands of data records.
Cookies are stored on the client, with low security factor and no sensitive information.
After the above answers are completed, you think that when you look at the interviewer, you will find that he is waiting for something. If you can continue to describe their differences and expand at this time, basically, your level has reached another level.
For this information, you can get the next article: http://www.cnblogs.com/yanwei067/articles/1137419.html
The amount of Session information mentioned in the Article table is small. This individual reserves his opinion. Maybe everyone has different standards. If he thinks that 1 million pieces of data is also small, I may think it is a large amount of data. This varies according to everyone's standards.
The key is to have your own understanding, in-depth participation, rather than endorsement for the interview
Method |
Information size |
Scope and storage time |
Application Scope |
Save location |
Application |
Any size |
Entire application life cycle |
Entire application/All Users |
Server |
Cache |
Any size |
Can be set as needed |
Entire application/All Users |
Server |
Session |
Small amount, simple data |
User Activity time + a delay (generally 20 minutes) |
Single User |
Server |
Cookie |
Small amount, simple data |
Can be set as needed |
Single User |
Client |
Viewstate |
Small amount, simple data |
Life cycle of a web page |
Single User |
Client |
Hide domain |
Small amount, simple data |
Life cycle of a web page |
Single User |
Client |
Query string |
Small amount, simple data |
Until the next page Jump request |
Single User |
Client |
Maybe you will mention the loss of the Session. At this time, the interviewer will be right down. Now, let's just talk about it.
When the Session expires
- The Code Session. Abandon (); causes the Session to expire.
- The Session times out and automatically expires.
- If Web. config is modified, it will expire.
- The application pool of IIS is recycled.
How to Prevent Session expiration
There are also many extensions for sessions, such as server Load balancer, such as how to update and deploy websites to protect the data that users are submitting. I am not familiar with it and have not found any suitable articles, no more details. Good luck!
2. High concurrency
I have been asked several times in the recent interview. If there is a sudden high concurrency, How can I deal with it?
First read a refreshing: http://www.cnblogs.com/yukaizhao/archive/2012/04/23/taobao_order_design.html
Another shock: http://www.cnblogs.com/jirigala/archive/2011/05/20/2051845.html
Send another sister:
Experience in optimizing a famous e-commerce website in Hangzhou with a high concurrency of tens of millions of large databases-experience in memory performance optimization for a famous e-commerce website in Hangzhou with a high concurrency of tens of millions of large databases-read/write splitting Optimization experience in e-commerce websites with a high concurrency of tens of millions of large databases-experience in optimizing SQL statements to optimize a famous Hangzhou e-commerce website with a high concurrency of tens of millions of large databases-disk I/O performance
After reading the above articles, you have the basic tricks. As for whether you say that you are successful or fatal, it depends on your creation.
3. Differences between String and string
What I know is simple to crying. If I don't know, I start to make a mess. If you encounter this question, I can only say that the question is good or bad.
Microsoft official video: http://www.microsoftvirtualacademy.com/training-courses/twenty-c-questions-explained-cn
If you are interested, read the 20 items, and benefit a lot.
Due to my limited technical skills, all the knowledge points are taken from the network, and you need to manually copy the URL to view them. If you do not like it, please forgive me.