New-age Transactional Systems - Not Your Grandpa's OLTP
John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Dflying Chen on Sep 26, 2007
I think Astoria can be considered a good REST citizen. Astoria turns entities/records into resources, and those resources are addressable through the URI space that the server presents. Every resource can be obtained and manipulated through the HTTP uniform interface, and the system allows for simple layering and caching through the traditional methods that are used by the WWW.Pablo tried to explain the reason why Microsoft started the Astoria project and why Astoria would be important and useful for the modern Web 2.0 concepts.
Serving user-interface elements is relatively straightforward from the server perspective. Most of the time these are simple file resources on the server, such as HTML or CSS files, media files. Serving data is another story. Until now, interaction with data was something that happened between the Web server and the database server; there was no need to expose entry points accessible from code running across the Web in a Web browser or some other software agent. This is where Project Astoria kicks in.Like other REST frameworks, Astoria allows developers to use more ‘meaningful’ URL to access and manipulate the resources on the Internet. Astoria team has also set up a demo server which allows us to query the well-known Northwind database directly from HTTP.
http://astoria.sandbox.live.com/northwind/northwind.rse/CustomersAstoria is integrated with Microsoft’s .NET framework perfectly while leveraging the existing framework infrastructure, as Pablo mentioned.
http://astoria.sandbox.live.com/northwind/northwind.rse/Customers[ALFKI]/Orders
For .NET applications, the Astoria toolkit includes a client library that runs in the .NET Framework environment and presents results coming from Astoria services as .NET objects; not only is that easier for developers to use within the codebase of the client application, but it also integrates well with components that already operate on top of regular .NET objects.Still, Astoria will support other non-database, like LINQ-enabled data sources to be exposed through the HTTP interface.
The schema definition used by Astoria is an Entity Data Model (EDM) schema, which is supported directly by the ADO.NET Entity Framework. The Entity Framework also includes a powerful mapping engine that allows developers to map the EDM schema to a relational database for actual storage.
[WebGet]Then we can use the following URL to access the service and specify a query parameter.
public static IQueryableCustomersByCity(NorthwindEntities db, string city)
{
if (city == null || city.Length < 3)
throw new Exception(“bad city”);
var q = db.Customers.Where(“it.City = @city”, new ObjectParameter(“city”, city));
// add user-based filter condition to q
return q;
}
/MyCustomersByCity?city=SeattleOn the security side, Pablo and his team have made Astoria fully compatible with the ASP.NET authentication pipelines, which is very straightforward for you to integrate it with the existing projects.
Astoria looks into the ASP.NET API to find out whether a user is authenticated and to find out further details, so that an application that uses any authentication scheme properly integrated with ASP.NET will automatically work with Astoria.For more information, please visit Astoria Team Blog and Pablo’s Blog.
John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.
Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.
Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.
Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).
Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.
Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.
One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.
InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.
No comments
Watch Thread Reply