Download presentation
Presentation is loading. Please wait.
1
Physics validation database
Ioana Ifrim
2
Data base format Beamlnk/Mcdetaillnk etc. self generated vs user look-up in the table Approaches for standardising the input format (synonyms handling) Database on CERN
3
Database on Demand DB On Demand is offering users an easy way to create and manage their own databases. It empowers users to perform tasks that are traditionally carried out by database administrators or to use different database engines (currently the Open Community version of MySQL, PostgreSQL and single instance Oracle databases) whilst facilitating operating system and database engine updates, access to backup and recovery services and some support for service continuity in case of hardware failure.
4
Java Api Currently working on the uploader built it with the Restful WebService developed by Hans Managed to understand the console option of uploading data Working on the SSO step Developing the parsing of the json file and the database insertion
5
As an alternative
6
Server and Browser As the end case of this is to have both a WebService and a WebApplication It's much easier to stick with JavaScript for both sides of the client/server divide than it is to write something once in Java and again in JavaScript, which you need to do to move business logic written in Java for the server to the browser. Node.js and JavaScript are the most efficient and fast approach to achieve this
7
JavaScript is running on the server, as well as in the browser, unlike Java which is encapsulated within sandboxed environments like Flash or Java Applets. Complicated build tools like Ant and Maven have revolutionized Java programming. But there's only one issue. You write the specification in XML, a data format that wasn't designed to support programming logic.
8
After over 20 years of stateless-web based on the stateless request-response paradigm, we finally have web applications with real-time, two-way connections, where both the client and server can initiate communication, allowing them to exchange data freely. This is in stark contrast to the typical web response paradigm, where the client always initiates communication. Additionally, it’s all based on the open web stack (HTML, CSS and JS) running over the standard port 80.
9
Furthermore, built-in support for package management using the NPM tool that comes by default with every Node.js installation. The idea of NPM modules is quite similar to that of Ruby Gems: a set of publicly available, reusable components, available through easy installation via an online repository, with version and dependency management
10
Programmatic access Node.js is an open source Javascript runtime environment for easily building server-side and networking applications. The platform runs on Linux, OS X, FreeBSD, and Windows, and its applications are written in JavaScript. Node.js applications can be run at the command line
11
As the application is running, and listening on a private IP address, the next step is to set up a way for users to access it. This is done using Nginx web server as a reverse proxy for this purpose.
13
If you're working on something like a web application which makes frequent queries you'll want to access the PostgreSQL server through a pool of clients. Why? For one thing, there is ~20-30 millisecond delay (YMMV) when connecting a new client to the PostgreSQL server because of the startup handshake. Furthermore, PostgreSQL can support only a limited number of clients. node-postgres ships with built in client pooling. Client pooling allows your application to use a pool of already connected clients and reuse them for each request to your application. If your app needs to make more queries than there are available clients in the pool the queries will queue instead of overwhelming your database & causing a cascading failure
14
Advantages pure JavaScript client and native libpq bindings share the same api connection pooling extensible js<->postgresql data-type coercion supported PostgreSQL features parameterized queries named statements with query plan caching async notifications with LISTEN/NOTIFY bulk import & export with COPY TO/COPY FROM
17
Thank you for your attention!
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.