just curious, is there any performance difference while storing appconfig in local (private/appconfig.ini) or by using json api that provide by another web2py app?
objective
to create central configuration webapp between web2py app
e.g. for json api that provide by another web2py app
applications/appconfig
applications/a0
applications/b0
so models/db.py in applications a0 and b0 must have something like
models/db.py
app_id = 1 #different between app a0 and b0
import requests
from requests.auth import HTTPBasicAuth
auth = HTTPBasicAuth('admin', 'password')
db = DAL(r[0]['db_uri'], pool_size = r[0]['pool_size'], migrate = r[0]['migrate'] )
any idea, or comments ?
best regards,
stifan