GAE支持了Java, Cron tasks


GAE支持了Java, Cron tasks

Published on Wed 08 Apr 2009 09:04 ( 11 months, 2 weeks ago)
Google Cloud computing

今天的GAE大新闻是App Engine指出了新的语言环境 – Java. 前几天愚人节GAE还开玩笑说支持了Fortran 77, 但必须填写程序卡邮递给google。 :) 

支持Java并不出人意料,Java在开源社区有广泛的支持,有大量的库、框架、工具、开发环境,google支持Java毫无疑问可以获取很多用户, 可能比Python有更大的群体。

然而,我现在是比较坚定的Java反对者,用Java开发项目常常很繁琐,很容易陷入混乱 -- 其实并不是因为Java本身的问题,而是在于目前Java领域可选择性太多,需要组合的东西太多,组合起来又相对容易且松散 -- 最终结果是,也许高手级别的,可以弄出非常优雅、高效的设计出来; 但大多情况下,一个项目可能是个非常繁琐的东西 --- Spring + hibernate + structs + … 可能才是个基础。Java领域普遍存在滥用XML的情况,看着那些本来只要2,3行就能描述清楚地东西变成一大坨的XML就令人厌烦。

比较让人欣喜的是GAE终于支持了cron tasks, 这之前已经有一些work around的解决方法,但现在GAE自己支持了的确更棒。 然而这个cron tasks并非 daemon,只是能定时激活特定的URL而已, 这个URL的处理时间还是有一样的限制。

A cron job will invoke a URL at a given time of day. A URL invoked by cron is subject to the same limits and quotas as a normal HTTP request, including the request time limit.

因此这和Windows Azure提供的后台任务服务还是有一些区别的,Azure的更接近后台进程(但仍然不能监听在任意端口而提供网络服务)。


Related posts:


Search related in web:

Custom Search

RSS Feed

One click subscribe this blog in your google reader!

Be social!


Want to say something here? please sign in



Blog posts link to this page
What are friends tweeting?
Tags cloud
Monthly Archives