Elasticsearch as an open-source full-text search engine in today's software development has been more and more widely used in business function development, you can choose Elasticsearch to provide more powerful than database query search method, Also based on search results scoring (weights) and highlighting makes it easy for us to implement a search engine within a station. ElasticSearch VS Database When we first approached Elasticsearch (ES), we often used it in analogy with the database to learn from the structure: Indices similar to database Type a table similar to database fields are similar to columns in a data table Documents are similar to the rows of a data table (that is, each record) at the same time, the database provides the search syntax to find shadows on ES, such as the database provides and, or logical operators, ES has must, should, and the database such as "like" The text matching feature is more powerful in ES. Still, ES is essentially a search engine.NoSQL and ES all have the same loosely structured structure, although we also have some discussion about whether ES can be used to replace non-relational databases (regardless of if ES is a nosql), but one reality is that

Introduced Mobile development often encounters this situation: we need to do a folding function for the text that is too long, so the react Native,rn-expandabletext is a component that solves the problem, and it is used in the same way as the native text component. But when your content exceeds the specified number of lines, it will help you to automatically fold the content.Click Expand to display all content. Project Address: Https://github.com/geekeren/RN-ExpandableText Install Expandabletext Usage Demos Properties Prop Description Default NumberOfLines The max number of lines the content is, the content exceed this value, the Expandview would show. 5 Expandview A callback function to return Expand-view, you can customize the Expand-view. When it ' s null, Expand-view'll disappear Unexpandview A callback function to return Unexpand-view. Usage the same as Expandview Onexpand A callback when the content expands - Oncollapse A callback when the content collapses - Follow Me Follow me on Wechat

This article is translated from: Freecodecamp, original address: An intro to Amazon fargate:what It was, why it's awesome (and not), and when to use it, English original author for Em Manuel Marboeuf When Amazon announced Fargate with Eks at the end of 2017 at the AWS Re:invent Conference, it was left out of the doghouse, when the blogs and the big guys I was focusing on were just mildly saying: Oh, there's a new gadget that will allow ECS users to run containers directly in the cloud. As a developer, it really surprised me.Let's see why. Liberating productivity I think there have been five major revolutions in the field of software development, greatly improving the productivity of developers and writing and deploying applications at the highest efficiency.They all solved a series of major problems: The advent of cloud services (IaaS): Addressing the cost and scalability issues of infrastructure Open source community, conferences, workshops, technical blogs, stackoverflow, etc.: let knowledge reach more people Version control systems, collaboration tools, and continuous integration tools solve concurrent project development and integration issues containerized architecture Server and system management costs are reduced by server-less computing services (PaaS) All of these revolutions have a common feature:

Context As a lightweight virtualization container technology, Docker is widely used in today's automated operations, along with the major cloud platforms AWS, Aliyun, and the container orchestration engine kubernetes are also based on Docker as a basic unit of service. So the first step in deploying an application is to create an application image, that is, to write dockerfile, such as The basic process is: Based on a base image, such as Java:alpine Build a project to generate a product, such as a JRE The portal that defines the image is entrypoint or cmd, "Java-jar xx.jre" In the actual project, the Dockerfile is far from simple, for example, the underlying image provided by OPENJDK may not have the environmental dependencies we need, such as the need for gradle support when building a Java project, such as a dependency package that is posted on GitHub, We need a git command, or we need to use Gitcrypt to decrypt some sensitive environment variables when we run the mirror, which means that we need to make some modifications based on the underlying image, such as: Run apkes on more and more, We'll find that the ever-bloated Docker image can seriously slow down

Magpie Magpie, "Magpie", take its "annunciation" meaning, so this system is a lottery software.Magpie is currently written with a pure front end, the main technical architecture is Reactjs+redux, and some UI implementations use the React invoke jquery scheme. This project has been hosted on GitHub and is focused on GitHub Use This project has been Docker and hosted on the Docker hub platform, and you can do it with the Dockergpie Sweepstakes You can also clone this project, Start the seyarn start Preview Try Online

Recently in the micro-letter program, the guests summed up some introductory experience, hoping to help students who want to learn the small program to provide reference One, micro-letter Small program file structure: ▸pages/: A paging file, a small program consists of a page (analogous to the activity or the pages component inside the Reactjs) ▸utils/: Put some tool methods . App.js: Small program startup, analogous to Android application class or Mainactivity App.json: The global configuration file of the applet, which is analogous to the Android manifest file, declares which page the applet has. APP.WXSS: A global CSS style file Project.config.json: project configuration file, definition of project name, Base library version, AppID, etc. Small program consists of a page, analogous to the activity of Android, and other components of the same life cycle, in addition, small program development and Reactjs very much like, such as react inside the use of state management interface data, small program has a almost identical to this, Called Data. Onlaunch Function Life cycle function – Listener applet initialization When the applet initialization is complete, onlaunch is triggered (the global trigger only once). OnShow Function Life cycle Functions – Monitor applet display OnShow is triggered when the

I've been thinking lately if there's something that shows the invocation relationships between our multiple microservices, and shows their state, and shows the flow of data through the network topology diagram, error tracing, it's a good framework if you do it all in a generic way.The main idea is to set up a certain communication protocol for each micro-service, so that they comply with a certain protocol on the reporting server, the server for UI display.As the saying goes, "foreign companies will play", only to find that some companies have been made. This article translated from: Tools to Monitor and visualize microservices Architecture | Programmableweb After you build and deploy a distributed application, it is critical to monitor and visualize it to ensure software reliability, availability, and expected performance.It's not easy. The heterogeneous and distributed nature of applications driven by microservices architectures makes monitoring, visualization, and analysis a challenge.Traditional application monitoring and performance management (APM) solutions are not suitable for today's complex distributed applications. Fortunately, several new APM solutions have been introduced in the past few years to address these issues.These APM solutions use advanced technologies such as artificial intelligence (AI), machine learning, and graphical analysis to monitor, visualize, and

In the evening, through the city's feasting, but also through the bustling pedestrian overpass, at this time often see many big aunt in the sale of some small things, this and now the bustling city society seems to be disjointed.This suddenly reminds me of Lu Xun's "Ah Q true" inside of AH Q is to do this small business to make a fortune, and is a little town of an innovative business model, I do not know whether the big uncle will be the same thinking or is inspired by their time.So I want to say, when can not stop learning can not stop following the footsteps of the times, otherwise, when we are old to become today's big uncle, is the Times change quickly, inadvertently between abandoned. Yesterday saw a small video, see Li led Bowie to visit Baidu Building, noon break staff in massage chair lunch break, Robin Li into the lounge to turn on the lights, employees are awake a bit, nor how to express.Bowie said, the boss is old you are sleeping (and greeting is not how to fight), so not afraid of being fired, in fact, the Internet company's atmosphere is very relaxed and free.

Docker run Docker? Docker technology is currently widely used in DevOps. We need to package the test or build code and automation scripts into Docker images and deploy them in various operating environments.In CI/CD, we use some CI/CD servers, such as Jenkins and GoCD, to build and deploy our applications to automate CI/CD.Now some CI/CD servers are also Dockerized on real physical machines.So we need to build (build) and run our Docker image inside the Docker container of the CI/CD server. This involves the "Docker run Docker" problem. A very natural idea is, do we need to install a Docker Daemon and Docker command in the CI/CD server image?However, running Docker in Docker always feels awkward. Extra installation and running of Docker undoubtedly increases the size of the CI/CD server image, and also increases the depth of Docker. In fact, we do not need to install Docker on the CI/CD server.Run our image on the CI/CD server with the following command: Principle: Grafting Docker adopts the C/S architecture. Docker's successful operation requires the support of Docker Daemon and Docker Client (client). When we run some commands such as docker build, we actually need Docker Client to connect to Docker Daemon