Tag Info

Hot answers tagged

3

Since you mention that "It's business critical that we don't lose any, or very minimal, data" IMHO buffering in memory is not really a good idea - it's volatile and if your machine/process dies for whatever reason that data is lost. Plus in-memory buffering needs extra care (unknown downtime duration, chewing memory resources, etc). On upload failure I'd ...


3

It sounds like you are looking to implement push notifications from your back-end service to each front-end client. Two options come to mind: WebSockets will allow your clients to maintain a persistent two-way communication channel with the server. Updates on the client can be sent along the persistent channel, and when the web-server receives a change ...


1

Your approach is far different from that of most PHP applications does, obviously a template engine binds some logic in views, most programmers prefer writing this logic in PHP itself. Limiting PHP to create services/ API s to only manipulate Data is a good idea, indeed. You may consider http://backbonejs.org/. I believe you could use it to write all ...


1

The reason you are probably not finding those examples is because that would mean implementing a complete templating system in PHP, which is far beyond the scope of a lot of tutorials. A good templating engine does not mingle PHP into the view, but there will always be binding logic in your views. There are plenty of templating frameworks out there and ...


1

In broad, general terms, the layers are: Data Store <--> Repository <--> Domain <--> Interface <--> (Actor) The data store can be anything... An XML file, a memory stream, a database, a key/value store. The repository typically converts from the data store to domain objects, and can include the use of a DAL. The domain is where ...


1

I'm assuming that this isn't the best practice as the smart but naughty user could loop through all the possible combinations of the PIN code and wait which one will give him true as a response. This is called a "brute-force" attack. In principle, it is impossible to prevent brute-force attacks. There is simply no way to set up a password scheme that ...



Only top voted, non community-wiki answers of a minimum length are eligible