The question of transient state management is where to keep data in th การแปล - The question of transient state management is where to keep data in th ไทย วิธีการพูด

The question of transient state man

The question of transient state management is where to keep data in the course of a long-running transaction. This could be a shopping cart in ecommerce, for example. We can choose to manage transient state at the customer, at the Web server, or at the database (see Figure 11.3). We can maintain transient state at the Web server, and we will get good performance in the sense that we cut down on network traffic. However, we lose a great deal of function by giving up the database. We do not get transactions, which can give us a lot of extra work in the application or may expose us to corrupt data after a Web server failure. This model also limits our ability to use distributed systems; for example, we must set Web server load balancing to “sticky,” because customers must return to the same server. Finally, by holding server resources during a long-running transaction, we use them over much longer time frames because user time is orders of magnitude larger than machine time. Figure 11.4 shows the impact of holding resources at the Web server. If machine time is 100 times faster, a given server can serve 100 times more users if it can release all resources during user “think time.” Resources could be many items, including allocated memory, entries in a shopping cart or cache table, or database connections. Database connections are such an important issue that they will usually be pooled. We can maintain transient data in the database, either in regular database tables or special formats, such as temporary tables or dedicated dictionaries as in commerce products. If we manage state this way, we have transactions, and we have reliability against most kinds of failure. But we incur extra network communication and probably additional disk access, since databases are more general purpose than specialized stores. If we manage state at the client, we will scale well, but we face issues of management, security (e.g., tampering with prices), privacy (cookies), and client identification (AOL caching issues). We do not want to hold state in a transactional database over transaction boundaries or during user interaction. The general plan is to get in,do work, and get out. For transient state, we will normally store shared data in a database and keep nothing at the Web server. If we don’t hold the state at the server we are also safe in the multiuser environment, safe against network failure, and safe against the user walking away. This was learned in the 1960s, using CICS instead of TSO; again in the 1990s, using COM or EJB; and it always applies. We can store client state on the client, most commonly a cookie that allows us to access other data but in some cases a disconnected set of data, if we combine this with an optimistic locking strategy. Of course, the problem is that state needs to be saved somewhere. An important exception is data that is cached—in other words, it can be recovered from the database if lost. Caching data on the Web server can provide substantial performance gains, since typically a small set of data is used repetitively. A cached copy of data on the server is very useful. It is caching if, when you throw it away, you can get it back. This is fast, since as long as the server stays up, there may be no need to return to the database. It is robust, since data may be recovered from the database. And it secures client data from tampering, since it may be checked against the server. But a caching strategy has to be designed for a set of data to get these features, which are trade-offs.


0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
The question of transient state management is where to keep data in the course of a long-running transaction. This could be a shopping cart in ecommerce, for example. We can choose to manage transient state at the customer, at the Web server, or at the database (see Figure 11.3). We can maintain transient state at the Web server, and we will get good performance in the sense that we cut down on network traffic. However, we lose a great deal of function by giving up the database. We do not get transactions, which can give us a lot of extra work in the application or may expose us to corrupt data after a Web server failure. This model also limits our ability to use distributed systems; for example, we must set Web server load balancing to “sticky,” because customers must return to the same server. Finally, by holding server resources during a long-running transaction, we use them over much longer time frames because user time is orders of magnitude larger than machine time. Figure 11.4 shows the impact of holding resources at the Web server. If machine time is 100 times faster, a given server can serve 100 times more users if it can release all resources during user “think time.” Resources could be many items, including allocated memory, entries in a shopping cart or cache table, or database connections. Database connections are such an important issue that they will usually be pooled. We can maintain transient data in the database, either in regular database tables or special formats, such as temporary tables or dedicated dictionaries as in commerce products. If we manage state this way, we have transactions, and we have reliability against most kinds of failure. But we incur extra network communication and probably additional disk access, since databases are more general purpose than specialized stores. If we manage state at the client, we will scale well, but we face issues of management, security (e.g., tampering with prices), privacy (cookies), and client identification (AOL caching issues). We do not want to hold state in a transactional database over transaction boundaries or during user interaction. The general plan is to get in,do work, and get out. For transient state, we will normally store shared data in a database and keep nothing at the Web server. If we don’t hold the state at the server we are also safe in the multiuser environment, safe against network failure, and safe against the user walking away. This was learned in the 1960s, using CICS instead of TSO; again in the 1990s, using COM or EJB; and it always applies. We can store client state on the client, most commonly a cookie that allows us to access other data but in some cases a disconnected set of data, if we combine this with an optimistic locking strategy. Of course, the problem is that state needs to be saved somewhere. An important exception is data that is cached—in other words, it can be recovered from the database if lost. Caching data on the Web server can provide substantial performance gains, since typically a small set of data is used repetitively. A cached copy of data on the server is very useful. It is caching if, when you throw it away, you can get it back. This is fast, since as long as the server stays up, there may be no need to return to the database. It is robust, since data may be recovered from the database. And it secures client data from tampering, since it may be checked against the server. But a caching strategy has to be designed for a set of data to get these features, which are trade-offs.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
คำถามของการจัดการสถานะชั่วคราวเป็นที่ที่เก็บข้อมูลในหลักสูตรของการทำธุรกรรมยาวทำงาน ซึ่งอาจเป็นตะกร้าช้อปปิ้งในอีคอมเมิร์ซเช่น เราสามารถเลือกที่จะจัดการกับรัฐชั่วคราวที่ลูกค้าที่เว็บเซิร์ฟเวอร์หรือฐานข้อมูล (ดูรูปที่ 11.3) เราสามารถรักษาสถานะชั่วคราวที่เว็บเซิร์ฟเวอร์และเราจะได้รับผลงานที่ดีในแง่ที่ว่าเราลดลงในเครือข่ายการจราจรสายค แต่เราสูญเสียการจัดการที่ดีของการทำงานโดยให้ฐานข้อมูล เราไม่ได้รับการทำธุรกรรมซึ่งสามารถให้เราทำงานมากเป็นพิเศษในการประยุกต์ใช้หรืออาจทำให้เราไปสู่​​ข้อมูลที่เสียหายหลังจากความล้มเหลวของเว็บเซิร์ฟเวอร์ รุ่นนี้ยังมีข้อ จำกัด ความสามารถของเราที่จะใช้ระบบการกระจาย; ตัวอย่างเช่นเราจะต้องตั้งค่าโหลดเว็บเซิร์ฟเวอร์สมดุลเพื่อให้ "เหนียว" เพราะลูกค้าต้องกลับไปที่เซิร์ฟเวอร์เดียวกัน สุดท้ายโดยถือทรัพยากรของเซิร์ฟเวอร์ในระหว่างการทำธุรกรรมยาวทำงานเราจะใช้พวกเขาในช่วงกรอบเวลานานเพราะครั้งที่ผู้ใช้เป็นคำสั่งของขนาดใหญ่กว่าเวลาที่เครื่อง รูปที่ 11.4 แสดงให้เห็นถึงผลกระทบของการถือครองทรัพยากรที่เว็บเซิร์ฟเวอร์ ถ้าเวลาเครื่อง 100 ครั้งได้เร็วขึ้นเซิร์ฟเวอร์ได้รับสามารถให้บริการ 100 ครั้งผู้ใช้มากขึ้นถ้ามันสามารถปล่อยทรัพยากรทั้งหมดในระหว่างผู้ใช้ "คิดว่าเวลา." ทรัพยากรอาจจะมีหลายรายการรวมทั้งการจัดสรรหน่วยความจำรายการในรถเข็นหรือตารางแคชหรือ เชื่อมต่อฐานข้อมูล เชื่อมต่อฐานข้อมูลดังกล่าวเป็นเรื่องที่สำคัญที่พวกเขามักจะได้รับการรวบรวม เราสามารถรักษาข้อมูลชั่วคราวในฐานข้อมูลทั้งในตารางฐานข้อมูลปกติหรือรูปแบบพิเศษเช่นตารางชั่วคราวหรือพจนานุกรมเฉพาะในขณะที่ผลิตภัณฑ์พาณิชย์ ถ้าเราจัดการรัฐด้วยวิธีนี้เรามีการทำธุรกรรมและเรามีความน่าเชื่อถือมากที่สุดกับชนิดของความล้มเหลว แต่เราต้องเสียค่าเครือข่ายการสื่อสารพิเศษและการเข้าถึงดิสก์เพิ่มเติมอาจเนื่องจากเป็นฐานข้อมูลที่ใช้งานทั่วไปมากกว่าร้านเฉพาะ ถ้าเราจัดการรัฐที่ลูกค้าเราจะขนาดดี แต่เราต้องเผชิญกับปัญหาของการจัดการระบบรักษาความปลอดภัย (เช่นยุ่งเกี่ยวกับราคา) ความเป็นส่วนตัว (คุกกี้) และลูกค้าไอออนระบุสาย (AOL ปัญหาแคช) เราไม่ต้องการที่จะถือของรัฐในฐานข้อมูลการทำธุรกรรมมากกว่าขอบเขตการทำธุรกรรมหรือในระหว่างการโต้ตอบกับผู้ใช้ แผนทั่วไปที่จะได้รับในการทำการทำงานและได้รับการออก สำหรับรัฐชั่วคราวเรามักจะเก็บข้อมูลที่ใช้ร่วมกันในฐานข้อมูลและให้อะไรเว็บเซิร์ฟเวอร์ ถ้าเราไม่ได้ถือรัฐที่เซิร์ฟเวอร์ที่เรายังมีความปลอดภัยในสภาพแวดล้อมที่ผู้ใช้หลายคนที่มีความปลอดภัยกับความล้มเหลวของเครือข่ายและความปลอดภัยกับผู้ใช้เดินออกไป นี้ได้รับการเรียนรู้ในปี 1960 โดยใช้ CICS แทน TSO; อีกครั้งในปี 1990 โดยใช้ COM หรือ EJB; และมันก็มีผลบังคับใช้ เราสามารถเก็บสถานะของลูกค้าที่ลูกค้าส่วนใหญ่คุกกี้ที่ช่วยให้เราสามารถเข้าถึงข้อมูลอื่น ๆ แต่ในบางกรณีชุดตัดการเชื่อมต่อของข้อมูลถ้าเรารวมนี้กับกลยุทธ์ล็อคในแง่ดี แน่นอนว่าปัญหาที่เกิดขึ้นคือการที่รัฐจะต้องมีการบันทึกไว้ที่ใดที่หนึ่ง มีข้อยกเว้นที่สำคัญคือข้อมูลที่เก็บไว้ในคำอื่น ๆ ก็สามารถกู้คืนข้อมูลจากฐานข้อมูลหากเกิดการสูญหาย แคชข้อมูลบนเว็บเซิร์ฟเวอร์สามารถให้การเพิ่มประสิทธิภาพอย่างมีนัยสำคัญเนื่องจากโดยปกติจะเป็นชุดเล็ก ๆ ของข้อมูลที่ถูกนำมาใช้ซ้ำ สำเนาของข้อมูลที่เก็บไว้บนเซิร์ฟเวอร์เป็นประโยชน์อย่างมาก มันเป็นแคชถ้าเมื่อคุณโยนมันออกไปคุณจะได้รับมันกลับมา นี้เป็นไปอย่างรวดเร็วเนื่องจากตราบใดที่เซิร์ฟเวอร์อยู่เสมออาจจะมีความจำเป็นที่จะกลับไปยังฐานข้อมูล มันเป็นไปอย่างแข็งแกร่งเนื่องจากข้อมูลอาจจะกู้คืนข้อมูลจากฐานข้อมูล และมันยึดข้อมูลของลูกค้าจากการปลอมแปลงเพราะมันอาจจะตรวจสอบกับเซิร์ฟเวอร์ แต่กลยุทธ์แคชจะต้องมีการออกแบบมาสำหรับชุดของข้อมูลเพื่อให้ได้คุณสมบัติเหล่านี้ซึ่งไม่ชอบการค้า


การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
คำถามของการจัดการของรัฐชั่วคราว ที่ให้ข้อมูลในหลักสูตรของธุรกรรมยาว . นี้อาจเป็นรถเข็นในอีคอมเมิร์ซ สำหรับตัวอย่าง เราสามารถเลือกที่จะจัดการกับสภาพชั่วคราวที่ลูกค้าที่เว็บเซิร์ฟเวอร์หรือฐานข้อมูล ( ดูรูปที่ 11.3 ) เราสามารถรักษาสถานะชั่วคราวที่เว็บเซิร์ฟเวอร์และเราก็จะได้ประสิทธิภาพที่ดีในความรู้สึกที่เราตัดลงบนเครือข่ายจึงสร้าง C . อย่างไรก็ตาม , เราสูญเสียการจัดการที่ดีของการทำงาน โดยการให้ฐานข้อมูล เราไม่ได้รับการทำธุรกรรม ซึ่งสามารถให้เรา มีงานเพิ่มขึ้นในใบสมัครหรืออาจเปิดเผยข้อมูลเว็บเราเสียหายหลังจากความล้มเหลวของเซิร์ฟเวอร์ รุ่นนี้ยัง จำกัด ความสามารถของเราในการใช้ระบบแบบกระจาย เช่นเราต้องตั้งค่าเว็บโหลดเซิร์ฟเวอร์สมดุล " เหนียว " เพราะลูกค้าต้องส่งกลับไปยังเซิร์ฟเวอร์เดียวกัน ในที่สุด โดยถือทรัพยากรของเซิร์ฟเวอร์ในรายการยาวมาก เราใช้มันมากกว่ากรอบเวลานานเพราะเวลาผู้ใช้เป็นคำสั่งของขนาด ใหญ่ กว่า เวลา เครื่อง รูปที่ 11.4 แสดงผลกระทบของการถือครองทรัพยากรที่เว็บเซิร์ฟเวอร์ ถ้าย้อนเวลาได้จะเร็วกว่า 100 ครั้งให้เซิร์ฟเวอร์สามารถให้บริการมากกว่า 100 ครั้งผู้ใช้ถ้ามันสามารถปล่อยทรัพยากรทั้งหมดในผู้ใช้ " คิดว่าเวลา " ทรัพยากรอาจเป็นหลายรายการ รวมทั้งการจัดสรรหน่วยความจำรายการในรถเข็นช้อปปิ้งหรือแคช ตารางหรือฐานข้อมูลการเชื่อมต่อ เชื่อมต่อฐานข้อมูลเป็นสำคัญ ปัญหาที่พวกเขาจะมักจะพู . เราสามารถรักษาข้อมูลต่างๆในฐานข้อมูลทั้งในรูปแบบตารางฐานข้อมูลปกติหรือพิเศษ เช่น ตารางชั่วคราว หรือเฉพาะพจนานุกรมในผลิตภัณฑ์พาณิชย์ ถ้าเราจัดการรัฐ วิธีนี้เราจะมีรายการและมีความน่าเชื่อถือกับชนิดมากที่สุดของความล้มเหลว แต่เราต้องการเครือข่ายการสื่อสารพิเศษและอาจจะเพิ่มการเข้าถึงดิสก์ เนื่องจากฐานข้อมูลมีวัตถุประสงค์ทั่วไปมากกว่าร้านค้าเฉพาะถ้าเราจัดการ รัฐ ที่ ลูกค้า เรา จะ ขนาด ดี แต่ เราเผชิญปัญหาของการจัดการความปลอดภัย ( เช่น ยุ่งกับราคา ) ความเป็นส่วนตัว ( คุกกี้ ) และลูกค้า identi จึงไอออนบวก ( AOL กล่าวว่า ปัญหา ) เราไม่ต้องการถือสถานะในฐานข้อมูลการแลกเปลี่ยนข้ามขอบเขตธุรกรรมหรือในระหว่างการปฏิสัมพันธ์ของผู้ใช้ แผนทั่วไปคือการได้รับในการทำงาน และออกไป สำหรับรัฐชั่วคราวปกติเราจะเก็บข้อมูลที่ใช้ร่วมกันในฐานข้อมูลและเก็บอะไรในเว็บเซิร์ฟเวอร์ ถ้าเราไม่ถือสถานะที่เซิร์ฟเวอร์ เรายังปลอดภัยในสภาพแวดล้อมที่ปลอดภัยกับผู้ใช้ , ความล้มเหลวของเครือข่าย และปลอดภัยต่อผู้ใช้ที่เดินจากไป นี้ได้เรียนรู้ในปี 1960 โดยใช้รับแทน แล้ว อีก ในทศวรรษ 1990 โดยใช้ COM หรือ ejb ; และมันก็ใช้เราสามารถเก็บสถานะลูกค้าที่ลูกค้าส่วนใหญ่ มักเป็นคุกกี้ที่ช่วยให้เราสามารถเข้าถึงข้อมูลอื่น ๆ แต่ในบางกรณีการเชื่อมต่อชุดของข้อมูล ถ้าเรารวมกับการมองโลกในแง่ดี การกลยุทธ์ แน่นอนว่า ปัญหาก็คือ รัฐต้องช่วย ที่ไหนสักแห่ง ข้อยกเว้นที่สำคัญ คือ ข้อมูลที่ถูกเก็บไว้ในคำอื่น ๆมันสามารถกู้คืนจากฐานข้อมูล หากสูญหายแคชข้อมูลบน Web Server สามารถให้เพิ่มประสิทธิภาพอย่างมาก เนื่องจากมักจะตั้งขนาดเล็กของข้อมูลที่ใช้ซ้ำๆ . สำเนาแคชของข้อมูลบนเซิร์ฟเวอร์ที่มีประโยชน์มาก เป็นแคชถ้าคุณโยนมันทิ้ง คุณจะได้รับมันกลับมา นี้เป็นไปอย่างรวดเร็ว เพราะตราบเท่าที่เซิร์ฟเวอร์อยู่เสมอ มันอาจจะไม่ต้องกลับไปยังฐานข้อมูล มันเป็นมีเสถียรภาพเนื่องจากข้อมูลที่ได้จากฐานข้อมูล และยึดข้อมูลลูกค้าจากการปลอมแปลง เพราะอาจถูกตรวจสอบกับเซิร์ฟเวอร์ แต่ใช้กลยุทธ์จะต้องมีการออกแบบให้ชุดของข้อมูลเพื่อให้ได้คุณสมบัติเหล่านี้ซึ่งมีการ trade-offs


การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: