Rails Routing from the Outside In - Ruby on Rails Guides - 0 views
-
Resource routing allows you to quickly declare all of the common routes for a given resourceful controller.
-
Rails would dispatch that request to the destroy method on the photos controller with { id: '17' } in params.
-
a resourceful route provides a mapping between HTTP verbs and URLs to controller actions.
- ...86 more annotations...
mqtt - 0 views
-
MQTT is a lightweight publish/subscribe messaging protocol. It is useful for use with low power sensors
-
The MQTT protocol is based on the principle of publishing messages and subscribing to topics, or "pub/sub".
-
Multiple clients connect to a broker and subscribe to topics that they are interested in
- ...22 more annotations...
Containers Vs. Config Management - 0 views
-
With configuration management systems, you write code that describes how you want some component of your systems to be installed and configured, and when you execute the code on your server, it should end up in the desired state.
-
building a hosting platform that is capable of a lot of things that system administrators used to do manually
-
build modules on deployment via bundler or npm or similar, it can be incredibly slow to run, taking minutes or longer in some cases
- ...10 more annotations...
Probably Done Before: Visualizing Docker Containers and Images - 0 views
-
In my opinion, understanding how a technology works under the hood is the best way to achieve learning speed and to build confidence that you are using the tool in the correct way.
-
union view
-
The top-level layer may be read by a union-ing file system (AUFS on my docker implementation) to present a single cohesive view of all the changes as one read-only file system
- ...36 more annotations...
How to write excellent Dockerfiles - 0 views
-
minimize image size, build time and number of layers.
-
maximize build cache usage
-
Container should do one thing
- ...25 more annotations...
javascript - How do I "think in AngularJS" if I have a jQuery background? - Stack Overflow - 0 views
-
in AngularJS, we have a separate model layer that we can manage in any way we want, completely independently from the view.
-
keep your concerns separate
-
do DOM manipulation and augment your view with directives
- ...34 more annotations...
The Flatiron School | Why You Don't Need Has_and_belongs_to_many... - 0 views
-
When creating associations between models, you almost never know how this relationship will blossom as your application grows.
-
setup a solid has_many :through relationship with an associated join table, you provide yourself with a huge amount of flexibility down the road.
-
A has_many :through association is used to setup a many to many relationship with another model
- ...2 more annotations...
Embracing REST with mind, body and soul « Plataformatec Blog - 0 views
-
gain with respond_with introduction is more obvious if you compare index, new and show actions
-
you can define supported formats at the class level and tell in the instance the resource to be represented by those formats.
-
when a request comes, for example with format xml, it will first search for a template at users/index.xml. If the template is not available, it tries to render the resource given (in this case, @users) by calling :to_xml on it
- ...6 more annotations...
Keepalived for Linux - 0 views
-
Keepalived is a routing software written in C. The main goal of this project is to provide simple and robust facilities for loadbalancing and high-availability to Linux system and Linux based infrastructures. Loadbalancing framework relies on well-known and widely used Linux Virtual Server (IPVS) kernel module providing Layer4 loadbalancing. Keepalived implements a set of checkers to dynamically and adaptively maintain and manage loadbalanced server pool according their health. On the other hand high-availability is achieved by VRRP protocol. VRRP is a fundamental brick for router failover. In addition, Keepalived implements a set of hooks to the VRRP finite state machine providing low-level and high-speed protocol interactions. Keepalived frameworks can be used independently or all together to provide resilient infrastructures.
单表60亿记录等大数据场景的MySQL优化和运维之道 - 快课网 - 0 views
-
存储引擎使用InnoDB
-
变长字符串尽量使用varchar varbinary
-
不在数据库中存储图片、文件等
- ...34 more annotations...
Flynn: first preview release | Hacker News - 0 views
-
Etcd and Zookeeper provide essentially the same functionality. They are both a strongly consistent key/value stores that support notifications to clients of changes. These two projects are limited to service discovery
-
So lets say you had a client application that would talk to a node application that could be on any number of servers. What you could do is hard code that list into your application and randomly select one, in order to "fake" load balancing. However every time a machine went up or down you would have to update that list.
-
What Consul provides is you just tell your app to connect to "mynodeapp.consul" and then consul will give you the proper address of one of your node apps.
- ...9 more annotations...
-
" So lets say you had a client application that would talk to a node application that could be on any number of servers. What you could do is hard code that list into your application and randomly select one, in order to "fake" load balancing. However every time a machine went up or down you would have to update that list. What Consul provides is you just tell your app to connect to "mynodeapp.consul" and then consul will give you the proper address of one of your node apps."
Getting Started with Rails - Ruby on Rails Guides - 0 views
-
A controller's purpose is to receive specific requests for the application.
-
Routing decides which controller receives which requests
-
The view should just display that information
- ...55 more annotations...
Docker ARG, ENV and .env - a Complete Guide · vsupalov.com - 1 views
-
understand and use Docker build-time variables, environment variables and docker-compose templating the right way.
-
ARG is only available during the build of a Docker image (RUN etc), not after the image is created and containers are started from it (ENTRYPOINT, CMD).
-
ENV values are available to containers, but also RUN-style commands during the Docker build starting with the line where they are introduced.
- ...20 more annotations...
Choosing an Executor Type - CircleCI - 0 views
-
Containers are an instance of the Docker Image you specify and the first image listed in your configuration is the primary container image in which all steps run.
-
In this example, all steps run in the container created by the first image listed under the build job
-
If you experience increases in your run times due to installing additional tools during execution, it is best practice to use the Building Custom Docker Images Documentation to create a custom image with tools that are pre-loaded in the container to meet the job requirements.
- ...9 more annotations...
Orbs, Jobs, Steps, and Workflows - CircleCI - 0 views
-
Orbs are packages of config that you either import by name or configure inline to simplify your config, share, and reuse config within and across projects.
-
Jobs are a collection of Steps.
-
All of the steps in the job are executed in a single unit which consumes a CircleCI container from your plan while it’s running.
- ...11 more annotations...
Internet Gateways - Amazon Virtual Private Cloud - 0 views
-
to provide a target in your VPC route tables for internet-routable traffic
-
to perform network address translation (NAT) for instances that have been assigned public IPv4 addresses
-
Ensure that instances in your subnet have a globally unique IP address (public IPv4 address, Elastic IP address, or IPv6 address)
- ...10 more annotations...
Use swarm mode routing mesh | Docker Documentation - 0 views
-
Docker Engine swarm mode makes it easy to publish ports for services to make them available to resources outside the swarm.
-
All nodes participate in an ingress routing mesh.
-
routing mesh enables each node in the swarm to accept connections on published ports for any service running in the swarm, even if there’s no task running on the node.
- ...6 more annotations...
VPCs and Subnets - Amazon Virtual Private Cloud - 0 views
-
you must specify a range of IPv4 addresses for the VPC in the form of a Classless Inter-Domain Routing (CIDR) block
-
A VPC spans all the Availability Zones in the region
-
add one or more subnets in each Availability Zone.
- ...19 more annotations...
Best practices for writing Dockerfiles | Docker Documentation - 0 views
-
building efficient images
-
Docker builds images automatically by reading the instructions from a Dockerfile -- a text file that contains all commands, in order, needed to build a given image.
-
A Docker image consists of read-only layers each of which represents a Dockerfile instruction.
- ...47 more annotations...
« First
‹ Previous
61 - 80 of 147
Next ›
Last »
Showing 20▼ items per page