Pre-Interview Preparation---C # knowledge point review----05

Source: Internet
Author: User

Technical Blog to continue to write, work is still screening, learning to continue

1.Session and Cookie usage differences

It is easy to answer the session on the server side, the stored data can be larger capacity, such as we save a table, thousands of data.

Cookies are kept on the client side with low safety factor and cannot put important sensitive information

After the answer, you think when you finish the answer, look at the interviewer, and find that he is still waiting for something, this time if you can continue to describe their differences and expand, basically your level has been a level

For information on this, you can get this article: http://www.cnblogs.com/yanwei067/articles/1137419.html

The information of the session mentioned in the article table is a small amount, this individual reservation opinion, perhaps the standard is different, he thinks 1w data is also a small amount, I may think is a lot of data. This is different according to everyone's criteria.

The key is to have their own understanding, to penetrate, rather than for the interview, and the endorsement

Method

Information size

Scope and save time

Application scope

Save location

Application

Any size

Lifetime of the entire application

the entire application / All Users

Server-side

Cache

Any size

Can be set as required

the entire application / All Users

Server-side

Session

User Activity Time + Some delay time ( usually minutes )

Individual users

Server-side

Cookies

Small Amount , Simple Data

Can be set as required

Individual users

Client

Viewstate

Small Amount , Simple Data

a Web the lifetime of the page

Individual users

Client

Hidden fields

Small Amount , Simple Data

a Web the lifetime of the page

Individual users

Client

Query string

Small Amount , Simple Data

Until the next page jump request

Individual users

Client

Perhaps you will mention the loss of the session, this time the interviewer is in the right way, since the mention, just casually talk about it

When the session expires
    • Code Session.Abandon (); Causes the session to expire.
    • Session timed out, automatic expiration.
    • Web. config is modified and will expire.
    • The application pool for IIS is being recycled.
How to prevent the session from expiring

For the session can also do a lot of extensions, such as load balancing, such as the update deployment site How to protect the user is submitting data, and so on, based on I also do not know and do not find the article I feel fit, it is not a fine table, gentlemen good luck

2. High concurrency

The recent interview has been asked several times, if the sudden emergence of high concurrency, how to deal with

Read an article about refreshing: http://www.cnblogs.com/yukaizhao/archive/2012/04/23/taobao_order_design.html

One more piece of pressure yajing: http://www.cnblogs.com/jirigala/archive/2011/05/20/2051845.html

and send her to her sister one:

Optimizing the experience of high concurrent tens large database in Hangzhou famous e-commerce website--memory performance optimization The experience of high concurrency Tens large database in Hangzhou famous e-commerce website-read/write separation Optimizing the experience of high concurrency Tens large database in a famous e-commerce website in Hangzhou-SQL statement optimization optimization of a famous e-commerce website in Hangzhou high concurrency Tens large database experience-disk I/O performance

After reading the above article, the basic moves you have, as you say there is no recruit win, or recruit deadly, see your fortune

The difference between 3.String and string

This knowing, simple to cry, do not know, began to make a mess. If you come across this problem, I can only say that the person who is wrong or bad to the extreme

Microsoft Official Video Introduction: HTTP://WWW.MICROSOFTVIRTUALACADEMY.COM/TRAINING-COURSES/TWENTY-C-QUESTIONS-EXPLAINED-CN

If you have a heart, look at all 20 of them and benefit from it.

Due to my limited technical level, all the knowledge points are from the network, and need to manually copy the URL to view, do not like to spray, please forgive me

Pre-Interview Preparation---C # knowledge point review----05

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.