• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

The idea to make application into cloud base?

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good day,

Appreciated someone can enlighten me with the idea of how we can turn the application to licensing and cloud base.

By depending on user login, user will direct to different instance of the application with respective data showing.

just like how salesforce.com react

Thanks in advance!
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the connection between "implementing a license and login scheme" and "running the app in the cloud"? Those seem to be orthogonal to me. Also, what exactly do you mean by "cloud" - do you have a specific implementation in mind?
 
Nakataa Kokuyo
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for misunderstanding and bad language

Assume this is an online healthcare application, each hospital setup their own information like product or services which going to publish to public, and can be done under an URL say www.e-care.com, which is also treat as back-end office application.

however, on user interface side, it will have separate URL to show their UI page, public can go though URL like www.hospital1.com to view their hospital-1 information, and www.hospital2.com to view hospital-2 information. but internally, those information are captured and entered under one back-end system, in this case www.e-care.com.

Question :

1. Can we build or is it make sense to have application to behave this as above mentioned (back-end in one application, front-end in another URL) ?
2. Should i achieve this under web hosting or cloud base in term of infrastructure setup ?
3. In term of software design, how to design such application especially data display(user interface, configuration, etc) base on user login in effective way?
4. this is licensed base application, it allow multiple user login for the same instance, for instance, Hospital-1 might have 10 users to login to www.e-care.com for back-end administrative and view the same page.
5. How to make sure user do not misuse the login and ensure with security?
6. Is there a better alternative ?

Thanks in advance for enlightenment !
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah the concept just like the project I have at work right now.

Since the project at work is a mess so I'm not telling how it's suppose to work but how I would have design it.

Start small say 2-3 tenants (hospitals in your case?)

Database = each tenant can 1) have its own schema or 2) have its own set of tables eg prefix to distinguish

Front end = simple approach is single login page with some dropdown choosing tenant or query string in url ?tenantID=xxx
Once logged in each tenant sees his/her views, able to do such and such function for that tenant (authorization)

Back end = depending on your use cases, may want to separate these into modules/apps then package into EAR (assuming its java based)

Hosting or cloud? = depends on how you design your database and how many servers you need. If such server running cluster or need to be highly available (resiliency)
things to consider for cloud:
What's the incremental cost for adding resources like CPU, RAM, disk storage, etc (vertical scaling)? How about horizontal scaling (another app server, database server, web server/load balancer or whatever)
Can the cloud provider able to detect resource allocation based on peak/idle usage (sort of like auto scaling for certain time period)?

Having a rough idea of such figures will help you decide if cloud is better or not. In terms of regular hosting, if your current plan (given x,y,z resources/software) is not enough, upgrade to the next more expensive plan.

Hope this helps.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1. Can we build or is it make sense to have application to behave this as above mentioned (back-end in one application, front-end in another URL) ?


This is possible, and a very common thing to do. The phrase to search for is "multi tenancy".

2. Should i achieve this under web hosting or cloud base in term of infrastructure setup ?


We don't have nearly enough information to say (see previous answer), both are possible. If this really is a healthcare application, then it's quite likely that the laws and regulations governing it will impact your options, so start by finding out about those.

5. How to make sure user do not misuse the login and ensure with security?


That is a big subject, especially for a healthcare app. In addition to all the usual precautions for web apps (see https://coderanch.com/how-to/java/SecurityFaq#web-apps for some pointers), healthcare laws and regulations will have an impact on this. As with all security, make sure to design it in from the beginning; you can't bolt it on later.

K. Tsang wrote:Database = each tenant can 1) have its own schema or 2) have its own set of tables eg prefix to distinguish


It's also possible to have a single schema with unique tables for all tenants, with data items tagged by tenant-specific IDs. That would be easier to handle than an approach using table prefixes or similar. But it's possible that applicable healthcare regulations disallow shared DBs, and that each tenant needs to have their own schema.

Bottom line: If you don't have a background in healthcare IT and are familiar with the relevant laws and regulations, get someone involved who does.
 
Nakataa Kokuyo
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a million K. Tsang and Ulf Dittmer for the warm replies, it really help !

for the front end, is that possible we can make tenant have their own URL rather than append general URL with tenantID ? for instance, www.hosptal-1.com for tenant1, and www.hospital-2.com for tenant2
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nakataa Kokuyo wrote:Thanks a million K. Tsang and Ulf Dittmer for the warm replies, it really help !

for the front end, is that possible we can make tenant have their own URL rather than append general URL with tenantID ? for instance, www.hosptal-1.com for tenant1, and www.hospital-2.com for tenant2



Then you need multiple domains or sub-domains to identify the different tenants.
 
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again K.Tsang !
 
Fire me boy! Cool, soothing, shameless self promotion:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic