什么是一些好的“负载平衡问题"?知道吗? [英] what are some good "load balancing issues" to know?

查看:47
本文介绍了什么是一些好的“负载平衡问题"?知道吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,大家好,我是应届毕业生,看着我正在申请的几份工作,我发现我需要了解运行时复杂性(足够简单),缓存(内存缓存!)和负载平衡问题. (对此一无所知!)

那么,我应该尝试学习什么样的负载平衡问题和解决方案,或者至少对.net或Java作业有点模糊?

谷歌搜索为我提供了网络负载平衡之类的东西,但是通常不是由软件开发人员来管理吗?

解决方案

我能想到的一件事是会话管理.默认情况下,无论何时获取会话ID,该会话ID都会指向服务器上的某些内存数据.但是,当您使用负载平衡时,有多个服务器.当数据存储在计算机1上的会话中,但是对于下一个请求,用户将重定向到计算机2时会发生什么?他的会话数据将丢失.

因此,您必须确保用户针对每个并发请求(粘性连接")返回同一台计算机,或者您不使用进程内会话状态,而是使用进程外会话状态,例如会话数据存储在数据库中.

Hey there guys, I am a recent grad, and looking at a couple jobs I am applying for I see that I need to know things like runtime complexity (straight forward enough), caching (memcached!), and load balancing issues
 (no idea on this!!)

So, what kind of load balancing issues and solutions should I try to learn about, or at least be vaguely familiar with for .net or java jobs ?

Googling around gives me things like network load balancing, but wouldn't that usually not be adminstrated by a software developer?

解决方案

One thing I can think of is session management. By default, whenever you get a session ID, that session ID points to some in-memory data on the server. However, when you use load-balacing, there are multiple servers. What happens when data is stored in the session on machine 1, but for the next request the user is redirected to machine 2? His session data would be lost.

So, you'll have to make sure that either the user gets back to the same machine for every concurrent request ('sticky connection') or you do not use in-proc session state, but out-of-proc session state, where session data is stored in, for example, a database.

这篇关于什么是一些好的“负载平衡问题"?知道吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆