-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation of paragraphs 5.11, 5.12 #1327
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -924,23 +924,24 @@ API, הודעה חדשה נרשמת לתור, וקריאה לכלי צפיה ב | |||||||
|
||||||||
<br/><br/> | ||||||||
|
||||||||
## ![✔] 5.11. Get your frontend assets out of Node | ||||||||
## ![✔] 5.11. הוצא את נכסי צד הלקוח שלך מ-Node | ||||||||
|
||||||||
**אמ;לק:** Serve frontend content using a specialized infrastructure (nginx, S3, CDN) because Node performance gets hurt when dealing with many static files due to its single-threaded model. One exception to this guideline is when doing server-side rendering | ||||||||
**אמ;לק:** כדאי להגיש תוכן צד לקוח באמצעות תשתית ייעודית (nginx, S3, CDN) מכיוון שהביצועים של Node נפגעים כאשר הוא צריך לטפל בהרבה קבצים סטטיים, עקב המודל החד-נימתי שלו. יוצא דופן להנחיה הזו הוא כאשר מבצעים רינדור בצד השרת. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
**אחרת:** Your single Node thread will be busy streaming hundreds of html/images/angular/react files instead of allocating all its resources for the task it was born for – serving dynamic content | ||||||||
**אחרת:** thread יחיד ב-Node יהיה עסוק בהזרמת מאות קבצי html/תמונות/Angular/React במקום להקצות את כל המשאבים שלו למשימה שלשמה נועד – הגשת תוכן דינמי | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
🔗 [**Read More: Get your frontend assets out of Node**](./sections/production/frontendout.md) | ||||||||
|
||||||||
🔗 [**קרא עוד: הוצא את נכסי צד הלקוח שלך מ-Node**](./sections/production/frontendout.md) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
<br/><br/> | ||||||||
|
||||||||
## ![✔] 5.12. Strive to be stateless | ||||||||
## ![✔] 5.12. תשאף להיות להיות stateless | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
**אמ;לק:** Store any type of _data_ (e.g. user sessions, cache, uploaded files) within external data stores. When the app holds data in-process this adds additional layer of maintenance complexity like routing users to the same instance and higher cost of restarting a process. To enforce and encourage a stateless approach, most modern runtime platforms allows 'reapp-ing' instances periodically | ||||||||
**אמ;לק:** אחסנו כל סוג של נתונים (למשל סשנים של משתמשים, מטמון, קבצים שהועלו) בתוך מאגרי נתונים חיצוניים. כאשר האפליקציה מחזיקה נתונים בתהליך, הדבר מוסיף שכבת תחזוקה נוספת כמו ניתוב משתמשים לאותה מופע והגדלת העלות של הפעלת תהליך מחדש. כדי לאכוף ולעודד גישה חסרת-מצב, רוב פלטפורמות ההרצה המודרניות מאפשרות "להפעיל מחדש" מופעים באופן תקופתי. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
**אחרת:** Failure at a given server will result in application downtime instead of just killing a faulty machine. Moreover, scaling-out elasticity will get more challenging due to the reliance on a specific server | ||||||||
**אחרת:** כשל בשרת מסוים יגרום להשבתה של האפליקציה במקום פשוט להרוג מכונה תקולה. בנוסף, גמישות הגדלת קנה המידה תהפוך למאתגרת יותר עקב התלות בשרת מסוים. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
🔗 [**Read More: Be stateless, kill your Servers almost every day**](./sections/production/bestateless.md) | ||||||||
🔗 [**קרא עוד: תהיה stateless, הרוג את השרתים שלך כמעט כל יום**](./sections/production/bestateless.md) | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
אני מרגיש שהמילה "הרגו" לא מעבירה את המסר נכון 😃 |
||||||||
|
||||||||
<br/><br/> | ||||||||
|
||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
האם אנחנו מנסים לקלוע לזכר ונקבה?