无状态的服务不仅性能更好,而且还将大部分状态维护职责转移给客户端应用程序。
A stateless service not only performs better, it shifts most of the responsibility of maintaining state to the client application.
这个需求用分析机制来说,就叫做:持久化:无论程序是否运行,都一直维护数据的信息和状态。
This business requirement translates into an analysis mechanism called Persistence: the maintenance of information and state even when the application is not executing.
维护状态,例子中用了简单的字符串变量来代表。
Maintain state, which here is represented by a simple string variable.
为了有一个可以正常工作的购物车,我们需要启用会话来维护请求之间的状态。
In order to have a working shopping cart, you need to have sessions enabled to maintain state across requests.
在此示例中,要求使用者维护对话状态,以便解释所得到的应答。
In this example the consumer is required to maintain conversational state so that the answer can be interpreted.
和其他服务实现类型一样,业务规则可能为无状态的或有状态的,即可以选择跨多个调用维护内部数据记录。
As with other service implementation types, business rules may be either stateless or stateful, meaning they may choose to maintain internal data records across multiple invocations.
对于长时间运行的流程,唯一的要求是一个可维护所有中间状态的数据库。
For long running processes, the only requirement is a database where all the intermediate statuses will be maintained.
我们的检测器只需要在字节码扫描阶段维护状态,因为我们查找的是方法级的问题。
Our detector needs to maintain state only during the byte code scanning phase, because we're looking for a method-level problem.
业务规则内维护的状态数据和客户机服务间的关系是特定于应用程序的,不能在体系结构中进行处理。
The relationship between state data maintained within business rules and the client service is application specific and not addressed in the architecture.
方面还有用新的、更精细的方式修改对象状态和行为的能力,从而引起了对维护系统完整性、健壮性、甚至整体理解的担心。
Aspects also have the ability to modify object state and behavior in new, more fine-grained ways, raising worries about maintaining system integrity, robustness, and even comprehension.
需要做的只是维护流程和数据之间的引用,并通过维护状态组合业务流程。
All that is required is to keep references between the process and data, and to maintain the status to orchestrate the business process.
“持续看板”是另一种类型的看板,能够让小批量的维护工作在几个状态之间流转。
"Sustaining Kanban" is another type, enabling small-batch maintenance work to flow between several states.
序列用于维护发送和接收的消息的状态。
The sequence is used to maintain the state of messages that have been sent and received.
有许多其他特性有助于减少维护HTTP状态带来的风险。
There are a number of other features which may help reduce the risks of trying to keep state for HTTP.
特别地,无状态会话bean可以方便地被容器合用,因为它们只需要维护每个请求的状态。
Stateless session beans in particular can be easily pooled by the container, because they only need to maintain state per request.
以前的w3站点能够以接近于实时(real-time)的方式维护最小化portlet 的状态。
The previous w3 site could maintain a minimized portlet state in a near real-time fashion.
AjaxBean中的方法本质上被预期是无状态的,会话状态必须维护在其他地方。
The methods in the AjaxBean are expected to be stateless in nature and the conversational state must be maintained somewhere else.
即使通过使用受管bean上的私有属性维护状态,每当面对那样的情况时,仍然必须增加额外的管道。
Even if you maintain state by using a private property on the managed bean, you still have to add extra plumbing each time you are faced with this use case.
有状态会话bean维护客户机的“会话状态”,适合处理那些跨越多个客户机请求的任务。
Stateful session beans maintain a "conversational state" with the client and are good for sets of related tasks that span multiple client requests.
也就是说,服务维护其自身的状态。
为了跨来自多个客户端的多个请求来维护状态,服务器应用程序必须具有一种方法来确定每次交互中将要更新的状态数据。
To maintain state across multiple requests from multiple clients, server applications must have a means for identifying the state data that is to be updated on each interaction.
在模块的加载和卸载期间,模块子系统维护了一组简单的状态变量,用于表示模块的操作。
During module load and unload, the module subsystem maintains a simple set of state variables to indicate the operation of a module.
超级块在每个文件系统的根上,超级块描述和维护文件系统的状态。
At the root of each file system is the superblock, which describes and maintains state for the file system.
规则的上下文是从客户机传递的参数,还包括规则可访问的任何静态数据或服务以及规则内维护的任何状态。
The context for the rules is the arguments passed from the client, plus any static data or services accessible to the rules, plus any state maintained within the rules.
特别是,对象系统设计的目标是分割系统状态,从而达到软件设计中面临的同样的可维护性和可扩展性的目标。
In particular, the goal of object system design is to partition the system state to meet the same goals of maintainability and extendibility faced in software design.
教练机模拟各种维护状态,并对学员的行为提供现实的反馈。
The trainer simulates a variety of maintenance situations and provides realistic feedback to students' actions.
它将维护工作流程的状态直到执行完毕,也负责将接收到的信息映射到工作流程的实例中去。
It maintains the state of the workflow till the workflow completes. It is also responsible for mapping an incoming message to a workflow instance.
尽管这些登录凭证可以维护非常少的状态,但是对于大多数有状态应用程序是不够的。
While these can maintain a very small amount of state, they are inadequate for most stateful applications.
在线测试的代码需要维护它各个变量的状态。
The online quiz script needs to maintain state of its variables.
部分储存库订阅关于这些远程对象的更新,并维护每个对象的最新状态的本地副本。
The partial repository subscribes to updates about these remote objects and maintains a local copy of the last known state of each.
应用推荐