Comments (1)
Well, there are a few things that we could do instead of the singleton object to basically share state between requests without hitting the database. The honest truth is that none of them are without problems:
- Caching the calls in class variables inside a service class. This one's big problem is that those class variables wont be shared across processes or threads. Sometimes it makes for an inconsistent experience for users.
- Storing the result of the calls in something like memcache (or the database for that matter). This seems like a bit of a tough given the fact that we move to being a gem. Tough to request that people put in a cache solution to use our gem.
- Store the entire html in the database and just use the database to be our caching solution completely and that itself prevents us from making the service calls.
- Same story but with the filesystem, but if we roll this thing out to multiple servers, that wouldnt be a good idea.
from dashtag.
Related Issues (20)
- Make Setting 'private'
- Move Instagram Users & User Id Environment Variable to DB
- Shut off access to any other port on DB from any other address HOT 3
- UI for reading and writing settings
- Core validation for settings inputs
- Basic UI to settings page
- Core User/Admin functionality HOT 1
- Remember me feature with User login
- Add Icons for home, settings, and log out icon
- Instructions for settings editing
- JS for richer validation experience on edit settings page
- When dashtag is initially started, the api rate is filled in as zero instead of nil (empty field)
- Make Landing page for launching your own Dashtag
- Owner can delete a post
- Consolidate settings and setting_store models
- Private accounts have tweets show up
- this is awesome
- Support display of tweets that tagged a specific user
- Allow user to customize color of header font
- Allow user to upload custom logo for dashtag page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashtag.