Amazon SimpleDB 用于开发环境/本地安装

发布于 2024-08-18 13:49:46 字数 264 浏览 8 评论 0原文

有没有一种方法/工具可以模拟Amazon的SimpleDB以进行开发?

在我对上述内容的探索中,我找到了这个工具但是这是针对 Mac 操作系统的。有什么可以安装在Win XP上的吗?不用说,所有 SimpleDB API 都需要支持。

以防万一,我的是一个基于 .Net 的 Web 应用程序。

Is there a way / tool to simulate Amazon's SimpleDB for the purpose of development?

In my quest for above, I found this tool but this is for the Mac OS. Anything that can be installed on Win XP? Needless to say, all SimpleDB APIs need to be supported.

Just in case it matters, mine is a .Net based web application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

红ご颜醉 2024-08-25 13:49:46

SimpleDB/dev 可在 Windows、Linux 和 Mac 上运行。您发现的 Wareseeker.com 页面复制的信息不正确。该工具的 Google Code 项目页面位于此处

http://code.google.com/p /simpledb-dev/

SimpleDB/dev runs on Windows, Linux and Mac. The Wareseeker.com page that you found has copied the information across incorrectly. The Google Code project page for the tool is here

http://code.google.com/p/simpledb-dev/

铁轨上的流浪者 2024-08-25 13:49:46

C# 库 (http://developer.amazonwebservices.com/connect/entry。 jspa?externalID=1133)包含一个模拟库,听起来它可能适合您。我没有使用模拟功能,但我相信它使用 XML 文件作为后备存储来保存模拟域。

需要记住的一件事是,几个月前,Amazon 发布了适用于 .Net 的 AWS SDK (http:// /aws.amazon.com/sdkfornet/)。我仍在使用 C# 库,并没有抽出时间研究 AWS SDK,因此我不确定是否包含模拟功能。基于此线程,听起来AWS SDK是所有各种服务 SDK(包括 SimpleDB C# 库)的汇总,因此它很可能包含模拟内容。

The C# library (http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1133) includes a mock library that sounds like it might do the trick for you. I have not used the mock functionality, but I believe that it uses an XML file as a backing store to hold the simulated domains.

One thing to keep in mind is that a few months ago, Amazon released the AWS SDK for .Net (http://aws.amazon.com/sdkfornet/). I'm still using the C# library and have not gotten around to looking into the AWS SDK, so I'm not sure if the mock functionality is included or not. Based on this thread, it sounds like the AWS SDK is a rollup of all the various service SDKs (including the SimpleDB C# library), so it may well contain the mock stuff.

笙痞 2024-08-25 13:49:46

我尝试了http://code.google.com/p/simpledb-dev/与Typica,但由于版本不匹配而无法使用。 simpledb-dev 似乎只支持 2007 版本的协议。

我尝试了 2009 年 1 月 2 日上传的 simpledb-dev 版本 0.1.10,这是迄今为止的最新版本。

(我想将此注释添加为对安德鲁·福格答案的评论,但我没有评论权限)。

更新:更多详细信息。使用 Typica 1.7.2,我收到以下错误:

<Response xmlns="http://sdb.amazonaws.com/doc/2007-11-07/">  
  <Errors> 
    <Error> 
      <Code>NoSuchVersion</Code> 
      <Message>SimpleDB/dev only supports version 2007-11-07 currently</Message> 
      <BoxUsage>0.0000219907</BoxUsage> 
    </Error> 
  </Errors> 
  <RequestID>0827d740-9654-4c6f-bed4-f97d19b40430</RequestID> 
</Response> 

我还尝试使用官方 AWS Java SDK 版本 1.1.3,但找不到指向本地服务器的方法。 AmazonSimpleDBClient 在构造函数中接受 ClientConfiguration 对象,但 ClientConfiguration 中没有服务器和端口的设置器。

I tried http://code.google.com/p/simpledb-dev/ with Typica, but it didn't work because of version mismatch. simpledb-dev seems to support only a 2007 version of the protocol.

I tried release 0.1.10 of simpledb-dev uploaded on Jan 02, 2009, which is the latest to date.

(I wanted to add this note as a comment to Andrew Fogg answer, but I don't have comment privilege).

UPDATE: further details. With Typica 1.7.2 I get the following error:

<Response xmlns="http://sdb.amazonaws.com/doc/2007-11-07/">  
  <Errors> 
    <Error> 
      <Code>NoSuchVersion</Code> 
      <Message>SimpleDB/dev only supports version 2007-11-07 currently</Message> 
      <BoxUsage>0.0000219907</BoxUsage> 
    </Error> 
  </Errors> 
  <RequestID>0827d740-9654-4c6f-bed4-f97d19b40430</RequestID> 
</Response> 

I also tried with the official AWS Java SDK version 1.1.3, but I could not find a way to point to a local server. AmazonSimpleDBClient accepts a ClientConfiguration object in the constructor, but there are no setters for server and port in ClientConfiguration.

憧憬巴黎街头的黎明 2024-08-25 13:49:46

看一下 fakesb:https://github.com/stephenh/fakesdb,SimpleDB 的 Scala 实现用于本地测试。似乎比 simpledb-dev 维护得更好(我还没有尝试过)。

另一种选择可能是node-mdb,一个 Node.js 实现: https://github.com/robtweed/node -mdb(2年前最新提交)。

Have a look at fakesb: https://github.com/stephenh/fakesdb, a Scala implementation of SimpleDB for local testing. Seems to be better maintained than simpledb-dev (I haven't tried it yet).

Another alternative may be node-mdb, a Node.js implementation: https://github.com/robtweed/node-mdb (latest commit 2 years ago).

旧时光的容颜 2024-08-25 13:49:46

您是否考虑过简单地为开发、测试和生产运行多个 SimpleDB 帐户? SimpleDB 有一个相当慷慨的免费使用层,因此除非您创建一个非常大的开发数据库,​​否则不需要任何费用。

我使用这种方法并模拟我的 SimpleDB 交互进行单元测试,取得了相当好的结果。

Have you considered simply running multiple SimpleDB accounts for dev, test, and production? SimpleDB has a pretty generous free-usage tier so this doesn't cost anything unless you create a very large dev database.

I've had pretty good results using this approach plus mocking my SimpleDB interactions for unit testing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文