Web服务是顺序处理还是并行处理? [英] Are web services processed sequentially or in parallel?

查看:118
本文介绍了Web服务是顺序处理还是并行处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Lotus Notes进行Web服务.我想做的是创建一个生成序列号的Web服务.生成数字的代码基于我们一段时间以来在数据库中使用的现有代码(只是纯莲花脚本,没有Web服务).基本上,有一个文档可以存储下一个号码,下一个号码将被返回并针对下一个呼叫进行更新,以检测到保存冲突,如果在保存该号码时出现问题,请再次尝试该号码.

I am just getting started in web services using Lotus Notes. What I would like to be able to do is to create a web service that generates a sequential number. The code to generate the number is based on existing code we have used for some time within our databases (just straight lotus script, no web services). Basically there is a document that stores the next number, the next number is returned and is updated for the next call save conflicts are detected and the number is tried again if there was a issue saving the number.

我想我可能会使用网络服务来生成号码. Web服务是顺序处理还是并行处理?因为如果它们是串行的,那么我将不需要与两个试图同时保存数字的人打交道.

I thought I might use a web service for to generate the number. So are web services processed sequentially or in parallel? Because if they are serial then I won't need to deal with two people trying to save the number at the same time.

推荐答案

Web服务是两个系统在不具有公共语言的情况下彼此通信的一种方式.

Web services are a way for two systems to communicate with each other where they would not have a common language.

例如,连接到.Net服务器的LotusScript代理.

For example LotusScript agent connecting to a .Net server.

在Domino上创建Web服务提供程序(服务器)时,可以使用LotusScript或Java对其进行编码.然后,服务器为消费者(客户端)提供WSDL文件,以编写与该Web服务对话所需的代码.

When creating a web service provider (server) on Domino you can code it in LotusScript or Java. The server then provides a WSDL file for the consumer (client) to write the code required to talk to that web service.

本教程应该为您更好地解释它:

This tutorial should explain it better for you:

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Creating_your_first_Web_Service_provider_and_consumer_in_LotusScript_and_Java.

现在是Domino. Web服务按从服务器请求的顺序运行.但是,没有控件说在Webservice X完成之前不要启动".

Now as for Domino. Web services run in order they are requested from the server. However there is no control to say "Don't start until Webservice X has finished".

您也可以将此代码编码到应用程序中,但除非其他原因,否则将给其他用户带来严重的内存/性能问题死锁的风险.

You could also code this into an application but run the serious risk of deadlocks of memory/performance issues for other users unless you counter for that.

还可以将Domino服务器设置为不并行运行Web服务/代理.但是,您再次冒着同样的问题的风险.

The Domino server can also be set to not run web services/agents in parallel. But again you risk the same issues.

如果它是唯一的ID,则可以按从Web服务创建的文档的UNID进行操作.或者,您可以通过评估使用@UNIQUE,但两者都只返回文本.

If it is a unique ID then you could go by the UNID of the document you create from the web service. Or you can use @UNIQUE via an evaluate, but both only return text.

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_UNIQUE.html

这篇关于Web服务是顺序处理还是并行处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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