简体   繁体   English

Google App Engine和桌面应用程序的数据库

[英]Database for Google App Engine and desktop application

I need some advice. 我需要一些建议。 I'm new to Java EE technologies. 我是Java EE技术的新手。 Anyway, I would like to make my first JAVA EE project. 无论如何,我想做我的第一个JAVA EE项目。 Imagine 2 client applications and server application. 想象一下2个客户端应用程序和服务器应用程序。

1) Server. 1)服务器。 I picked up Google App Enginge technology to create server application. 我选择了Google App Enginge技术来创建服务器应用程序。 I would like to connect it to some easy database. 我想将其连接到一些简单的数据库。

2) Client applications. 2)客户端应用程序。 I would like them to be desktop applications (or applications launched from the desktop) and these 2 apps also have to be connected to the same database as sever. 我希望它们是桌面应用程序(或从桌面启动的应用程序),并且这两个应用程序还必须与服务器连接到同一数据库。

There was no problem to create this in Java SE environment - I had two clients applications with sockets staff and server application with socket staff. 在Java SE环境中创建此应用程序没有问题-我有两个带有套接字人员的客户端应用程序和带有套接字人员的服务器应用程序。 All worked locally. 全部在本地工作。

But now I want to have server and database on the Internet and I want to make it in more professional way. 但是现在我想在Internet上拥有服务器和数据库,并且希望以更专业的方式进行构建。

My problems are: 我的问题是:

  • How to create free database from GAE? 如何从GAE创建免费数据库? Is datastore the best option or something else? 数据存储是最好的选择还是其他? What's important - the client desktop application will also use this database. 重要的是-客户端桌面应用程序也将使用此数据库。 I'm looking for the easiest solution. 我正在寻找最简单的解决方案。
  • Maybe the solution is to create web client application instead of the desktop one - but make it look like it was desktop app (I would like to avoid using browser). 也许解决方案是创建Web客户端应用程序而不是桌面应用程序-但使其看起来像是桌面应用程序(我想避免使用浏览器)。 I have no idea how to do this and if this is even possible. 我不知道如何做到这一点,如果可能的话。

Any help will be really appreciated. 任何帮助将不胜感激。 I'm stuck because my knowledge is too little to start. 我被困住了,因为我的知识太少了。 I have ma GAE app and I don't know what should I choose next. 我有一个GAE应用,我不知道下一步该怎么选择。

Thank you in advance. 先感谢您。

If you want make desktop application, you need to build backend application first. 如果要制作桌面应用程序,则需要先构建后端应用程序。

check this out. 检查一下。 You can use same concept with that. 您可以使用相同的概念。 Build back end, and then create API to connect to your backend, and use that API in your desktop application. 构建后端,然后创建API以连接到您的后端,并在桌面应用程序中使用该API。

Datastore is easiest way to store data. 数据存储是存储数据的最简单方法。 Check this out . 检查一下 Datastore have some limitation (such as didnt support join, many to many relationship, etc). 数据存储区有一些限制(例如,不支持连接,多对多关系等)。 Please consider wisely. 请明智地考虑。 Otherwise you can use Google Cloud SQL for your option, but AFAIK its not free. 否则,您可以选择使用Google Cloud SQL,但AFAIK并非免费。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM